[Dev-C++] Re: XP Manifest and Win32 controls
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Thierry P. <tpi...@gm...> - 2006-02-25 04:09:06
|
Argh, found the answer ... You have to link your prog against libcomctl32.a, includes a file "commctrl.h" and call InitCommonControls() before everything else. I suppose for supporting Vista, we'll have to kill a chicken and drink it's blood when the moon is full, while using black magic for programming :-( 2006/2/23, Thierry Pierron <tpi...@gm...>: > 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 : > > HWND button =3D CreateWindowEx( > 0, > "button", "Cancel", > WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, > 100, 200, 100, 20, > hwnd, (HMENU) IDOK, > hThisInstance, > NULL > ); > > 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 > -- Thierry Pierron |