View Full Version : IC Dialog Application
April 17, 2008, 15:06:02
I have create a new project : IC Dialog Application.
I work in my Image with CListener. Nevertheless I want to modify my CDialogProject's variables in CListener. How do I have to make ?
Because my project is daughter of CDialog.
I see that to draw you use m_pDrawCWnd ....
April 17, 2008, 16:22:43
I must surrender, I do not understand your problem completely.
At least, the "quick and dirty" way is to make the member variables of the CListener public. Then you can access them with m_cListener.variable=...
April 17, 2008, 16:32:51
I want to refresh my variable in my Dialog Box.
For example : I have a new image. I'm going in FrameReady ... I change my variable ...
But how know if my CListener's variable have changed in my ****** Box ? With a timer and look this variable ?
April 17, 2008, 16:39:38
Now I understand.
The correct way is to send a message if a variable has been changed. The message is sent (SendMessage()) by the listener and the main window will process it.
The "dirty way" is to pass a pointer of the main window to the CListner and call a public function of the main window in the CListener.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.