http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ShowWindow?



>                WNDCLASS    wc;
>                if(!hPrevInstance){
>                    wc.style = 0;
>                    wc.lpfnWndProc = (WNDPROC) WndProc;
When i use child window,I'd like set a specific window procedure for my child window
U'd better use main window' procedure as its child window's procedure
My mean is:
WNDPROC SubWndProc; / /declare a global variable
..
wc.lpfnWndProc=SubWndProc; / /when set sub window's WndClass
..
LRESULT CALLBACK SubWndProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam) / /it's child window's own procedure
{
   switch(message){
     case...
..
}
if i made any mistake,plz tell me
       _          _
   ___| |__  _ __(_)___
  / __| '_ \| '__| / __|
 | (__| | | | |  | \__ \
  \___|_| |_|_|  |_|___/
 mailto:cchris@citiz.net
 http://chrisworld.yeah.net
 OICQ:1053179
 TEL: 021-65980423
 Why so many guys called chris?

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html