Re: Create a WS_CHILD window in another thread with its own WinPro
- From: Norman Bullen <norm@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 20 Feb 2007 12:47:04 GMT
docschnipp wrote:
Hi Norm,Whether these are appropriate depends upon how you want the window to behave.
"Norman Bullen" wrote:
docschnipp wrote:
Hi,
....
mWindowClass.style = WS_CHILD | WS_VISIBLE ;
....
Any hint what I am doing wrong?
thanks
doc
You are putting _window style_ values (WS_CHILD and WS_VISIBLE) in a WNDCLASS element which should get only _class style_ values.
Use WS_CHILD and WS_VISIBLE when you call CreateWindow().
Norm
Ouch! Maybe it was just a little too late when I wrote that :)
I am using now
mWindowClass.style = CS_OWNDC | CS_NOCLOSE | CS_DBLCLKS;
Is that a suitable selection of attributes?
Thanks for your answer.
doc
Read the documentation on MSDN (the page for WNDCLASS will have a link to a page with a description of the various class styles) and decide which modifies the behavior of your window in the way that you want.
Norm
--
--
To reply, change domain to an adult feline.
.
- References:
- Re: Create a WS_CHILD window in another thread with its own WinProc
- From: Norman Bullen
- Re: Create a WS_CHILD window in another thread with its own WinProc
- Prev by Date: Re: spy++ and hidden windows
- Next by Date: Re: spy++ and hidden windows
- Previous by thread: Re: Create a WS_CHILD window in another thread with its own WinProc
- Next by thread: Re: Create a WS_CHILD window in another thread with its own WinPro
- Index(es):
Relevant Pages
|
Loading