Re: window creation
- Posted by fred at jordah.freeserve.co.uk May 17, 2003
- 473 views
Sorry, i must've misinterpreted you. i thought u were using the wndclassex and registerclassex structure. I think it will be best if you attach your program for us to find the bugs etc typedef struct { UINT cbSize; UINT style; WNDPROC lpfnWndProc; int cbClsExtra; int cbWndExtra; HINSTANCE hInstance; HICON hIcon; HCURSOR hCursor; HBRUSH hbrBackground; LPCTSTR lpszMenuName; LPCTSTR lpszClassName; HICON hIconSm; } WNDCLASSEX, *PWNDCLASSEX; ================== Jordah Ferguson LogicSoft Dev. http://pcplayground.com/gate.html?name=Sites&op=visit&lid=18 ----- Original Message ----- From: <1evan at sbcglobal.net> To: "EUforum" <EUforum at topica.com> Sent: Saturday, May 17, 2003 3:04 PM Subject: Re: window creation > > I'll try that Monday as my program is on my work computer and I'm at > home now. I forgot to get a copy of it to work on at home. :( > Where should I put the cbSize member in WndClass? The SDK defines the > structure as: > > typedef struct { > UINT style; > WNDPROC lpfnWndProc; > int cbClsExtra; > int cbWndExtra; > HINSTANCE hInstance; > HICON hIcon; > HCURSOR hCursor; > HBRUSH hbrBackground; > LPCTSTR lpszMenuName; > LPCTSTR lpszClassName; > } WNDCLASS, *PWNDCLASS; > > No mention of cbSize, where does it go? Should it be the first element > as in WndClassEx? > > fred at jordah.freeserve.co.uk wrote: > > >cbSize is a mandatory element to fill in when dealing with either > >structure(btw it exists for both structures). RegisterClass() or > >RegisterClassEx() fails if its not filled in. That is the reason your > >program fails. > > > >================== > >Jordah Ferguson > >LogicSoft Dev. > >http://pcplayground.com/gate.html?name=Sites&op=visit&lid=18 > > > > > >TOPICA - Start your own email discussion group. FREE! > > > > > > > TOPICA - Start your own email discussion group. FREE! > >