The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: z23 on April 10, 2006, 02:47:20 AM

Title: how does main window repaint its child windows
Post by: z23 on April 10, 2006, 02:47:20 AM
a newbie question:
I wander if there is a callback procedure attached to the child window,and this procedure is supplyed by system.
for example ,a button ,how does the main window procedure receive the COMMAND message when user has clicked on this child window.
thx
Title: Re: how does main window repaint its child windows
Post by: hutch-- on April 10, 2006, 02:53:30 AM
Hi z23,

Welcome on board. The basics are that every window has a callback attached to it that the OS sends messages to, controls included and generally the control handles its own redraw updates on a demand basis. Depending on the design of the control, it sends various user input messages to its parent window and in the case of a common command like WM_COMMAND, it is passed as a message to the parent where you can write code to respond to it.
Title: Re: how does main window repaint its child windows
Post by: z23 on April 10, 2006, 03:06:18 AM
i see.
thanks hutch.
I am so glad to read your answer.
As a student from china,I found this is a good place to communicate with each other and learn from each other.

.....just with no confidence about my english...


Title: Re: how does main window repaint its child windows
Post by: hutch-- on April 10, 2006, 04:48:43 AM
Have no fear about your English, everyone is welcome here and we have people from around the world so its no big deal.