[Dev-C++] XP Manifest and Win32 controls
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Thierry P. <tpi...@gm...> - 2006-02-24 01:09:27
|
Hi all, I'm just trying to use Win32 common controls in Dev-cpp with "Support Windows XP themes" activated in project's options. Actually, I simply use the Win32 application template, where I added following lines of code, just after main window creation : =09HWND button =3D CreateWindowEx( =09=090, =09=09"button", "Cancel", =09=09WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, =09=09100, 200, 100, 20, =09=09hwnd, (HMENU) IDOK, =09=09hThisInstance, =09=09NULL =09); Actually, that code works (i see push button) when XP styles are desactivated. When I activate that option, the CreateWindowEx fails with error "The class does not exist". Sorry, but I'm new to win32 programming, and I have to maintain a old app. If someone has a little idea of what can solve that issue, that would be fine ! -- Thierry Pierron |