While upgrading my application grid to use prof-uis I used to use a
CDateTimeCtrl m_OLDdtPicker;
I changed it over to
CExtDateTimeWnd m_dtPicker;
When I inistialise my grid the old picker worked fine with
RECT rcMin;
rcMin.left=0;
rcMin.right=120;
rcMin.top=0;
rcMin.bottom=18;
this-> m_OLDdtPicker.Create( WS_CHILD | WS_VISIBLE | MCS_NOTODAY,rcMin,this,IDC_GRIDCAL);
But when I upgrade it to
RECT rcMin;
rcMin.left=0;
rcMin.right=120;
rcMin.top=0;
rcMin.bottom=18;
this->m_dtPicker.Create(this,rcMin,IDC_GRIDCAL,0x56010000);
0x56010000 = the same style that is in the sample application
the CExtDateTimeWnd fails on the create method, stepping into the create method it failes on
HWND hWnd = ::CreateWindowEx(cs.dwExStyle, cs.lpszClass,
cs.lpszName, cs.style, cs.x, cs.y, cs.cx, cs.cy,
cs.hwndParent, cs.hMenu, cs.hInstance, cs.lpCreateParams);
With paramaters
cs.dwExStyle 0 unsigned long
+ cs.lpszClass 0x00bcceac "ProfUIS-DurationWnd" const char *
+ cs.lpszName 0x00000000 <Bad Ptr> const char *
cs.style 1442906112 long
cs.x 0 int
cs.y 0 int
cs.cx 120 int
cs.cy 18 int
+ cs.hwndParent 0x00060fce {unused=??? } HWND__ *
+ cs.hMenu 0x00000349 {unused=??? } HMENU__ *
+ cs.hInstance 0x00400000 {unused=9460301 } HINSTANCE__ *
cs.lpCreateParams 0x00000000 void *
Thanks for the help!
Regards,
Eddie