Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

closing a dialog box

Status
Not open for further replies.

itsh11

Programmer
Dec 16, 2004
3
US
I have a modal dialog box created by a class(say class A). I want to close this dialog box from another class (say class B),which is not derived from class A .I think,the way how this should be done is to get a handle to the dialog box and close it, from the class B. Can you suggest me how I can accomplish this, since I dont have access to the dialog box class's object(class A 's object) at the point where i want to close it (in class B).
 
Give class B a member variable that is a pointer to the object of A. Or give B a member HWND and set it equal to A's HWND and post a message to tell it to close.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top