'ICC_STANDARD_CLASSES' : undeclared identifier
-
Hi I am using a rih edit control in my SDK app. So when i was executing the app i got the "Cannot find window class" error when i tried to call CreateDialog(..). So i did the following INITCOMMONCONTROLSEX init; memset(&init, 0, sizeof(init)); init.dwSize = sizeof(INITCOMMONCONTROLSEX); init.dwICC = ICC_STANDARD_CLASSES; InitCommonControlsEx(&init); Now i get an error that 'ICC_STANDARD_CLASSES' : undeclared identifier even when commctrl.h and comctl32.lib are properly used.
-
Hi I am using a rih edit control in my SDK app. So when i was executing the app i got the "Cannot find window class" error when i tried to call CreateDialog(..). So i did the following INITCOMMONCONTROLSEX init; memset(&init, 0, sizeof(init)); init.dwSize = sizeof(INITCOMMONCONTROLSEX); init.dwICC = ICC_STANDARD_CLASSES; InitCommonControlsEx(&init); Now i get an error that 'ICC_STANDARD_CLASSES' : undeclared identifier even when commctrl.h and comctl32.lib are properly used.
Per MSDN,
ICC_STANDARD_CLASSES
is not a valid option. Prior to creating the control, I think you might need to callLoadLibrary("riched20.dll")
.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
Hi I am using a rih edit control in my SDK app. So when i was executing the app i got the "Cannot find window class" error when i tried to call CreateDialog(..). So i did the following INITCOMMONCONTROLSEX init; memset(&init, 0, sizeof(init)); init.dwSize = sizeof(INITCOMMONCONTROLSEX); init.dwICC = ICC_STANDARD_CLASSES; InitCommonControlsEx(&init); Now i get an error that 'ICC_STANDARD_CLASSES' : undeclared identifier even when commctrl.h and comctl32.lib are properly used.
The rich edit control is initialized differently than other controls. You need to load either riched32.dll or riched20.dll in your app's init code, depending on which rich edit version you need. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD