how to find out what time a control is created and VISIBLE?
-
as you know, when a control (e.g a rich edit control) is created, its parent recieves a WM_CREATE. but at that time, the control is not visible yet. is there a way (e.g a special message) to fine out when a child window is create and visible?
Thank you masters!
-
as you know, when a control (e.g a rich edit control) is created, its parent recieves a WM_CREATE. but at that time, the control is not visible yet. is there a way (e.g a special message) to fine out when a child window is create and visible?
Thank you masters!
Jusef Marzbany wrote:
is there a way (e.g a special message) to fine out when a child window is create and visible?
What about
IsWindowVisible()
?"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
as you know, when a control (e.g a rich edit control) is created, its parent recieves a WM_CREATE. but at that time, the control is not visible yet. is there a way (e.g a special message) to fine out when a child window is create and visible?
Thank you masters!
Have a look at WM_NCPAINT, or WM_WINDOWPOSCHANGING - the first will be the first hint of drawing to the screen, and the 2nd may be handy if you look at the fine detail of the changes being made. Iain.
In the process of moving to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
-
Have a look at WM_NCPAINT, or WM_WINDOWPOSCHANGING - the first will be the first hint of drawing to the screen, and the 2nd may be handy if you look at the fine detail of the changes being made. Iain.
In the process of moving to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
good idea! thnx...:thumbsup:
-
as you know, when a control (e.g a rich edit control) is created, its parent recieves a WM_CREATE. but at that time, the control is not visible yet. is there a way (e.g a special message) to fine out when a child window is create and visible?
Thank you masters!
Is this helpful - Waiting until the dialog box is displayed before doing something.[^] You can easly modify that for your control. Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.