Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » How to have an answer from a CButton or CExtButton ? Collapse All
Subject Author Date
Olivier MARTIN Nov 24, 2002 - 11:42 PM

Thank very much for your last answer. It helps me a lot !
But now when I insert a button in one of the propertySheet there is no consequence : the Button doesn’t emit any WM_Message.
Thank you very much !
Olivier

Sergiy Lavrynenko Nov 25, 2002 - 6:05 AM

Dear Olivier,

The download URL

http://www.fossware.com/download/Prof-UIS/Examples/ChildSheet.Zip

has been updated.

Now second property page (CMyPage2 class) contains one new member button ("CExtButton m_btn1" in MyPage2.h) and three "OnClick" event handlers (in MyPage2.cpp):

void CMyPage2::OnOK()
{
::AfxMessageBox( _T("CMyPage2::OnOK()") );
}

void CMyPage2::OnCancel()
{
::AfxMessageBox( _T("CMyPage2::OnCancel()") );
}

void CMyPage2::OnButton1()
{
::AfxMessageBox( _T("CMyPage2::OnButton1()") );
}

Please downlod the ChildSheet application again and see how second page catches button clicks. If you still have unresolved problem with buttons - you can send me your project and I will help you.

Best regards,
Sergiy Lavrynenko.

Olivier MARTIN Nov 26, 2002 - 12:34 AM

Thank you very much !!!