Hey guys,
I have a basic win32-based solution in VS.NET that's giving me problems. In the
solution, I have a single .cpp/.h pair that support a single main dialog which
contains 2 basic edit controls, 2 spin controls, a button and various static
controls/labels.
The main dialog is shown via the following call:
DialogBox(hInst, (LPCTSTR)IDD_MAIN, NULL, (DLGPROC)WndProc_Main);
Testing the return value, I get a -1 and formatting the GetLastError() value
gives me:
Cannot find window class.
Removing the spin controls allows the window to be shown (as does setting the
"No Fail Create" window style in the resource editor).
I've solved this problem before but can't remember how. :/ Can anyone remember
what it is I have to do to ensure I can use these controls, as-is?
Spy++ shows the spin controls as having the window class "msctls_updown32" and
they're seemingly in comctrl32.lib (though linking to it makes no difference).
Any help is appreciated (this is driving me nuts!)
--
TJ Houston
e: [EMAIL PROTECTED]
w: http://myrathi.co.uk/
:
Powered by MTS Professional @ http://myrathi.co.uk/mts-pro/