" How can I get CWnd pointer for the current dialog ? "
-
:-O Please, Can anybody helps me ? I want to catch the CWnd pointer for the current dialog to use it in the CButton::Create() method. I tried to use "this" instead of CWnd in the OnButtonClick() its works ok, but when I tried to use "this" inside Custom Class (I created it) it doesn't work because the "this" pointer was pointing to the Current class.So " How can I get CWnd pointer for the current dialog ? " Thank you at all. Dr Abudawood
-
:-O Please, Can anybody helps me ? I want to catch the CWnd pointer for the current dialog to use it in the CButton::Create() method. I tried to use "this" instead of CWnd in the OnButtonClick() its works ok, but when I tried to use "this" inside Custom Class (I created it) it doesn't work because the "this" pointer was pointing to the Current class.So " How can I get CWnd pointer for the current dialog ? " Thank you at all. Dr Abudawood
class Custom public CWnd
{
Custom()
{
CWnd* pWnd = static_cast<CWnd>this;
}
}I think it will work, I don't know. Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318 Interests: C++, ADO, SQL, Winsock, 0s and 1s