How to get the handle of a control in properties sheet.
-
Hello, everyone, In my current project, I want to display xp style button(OK, Cancel and apply) in the properties sheet. If I do it using MFC, it would be very easy. I just need to m_btnXPButton.SubclassWindow(GetDlgItem(ID_APPLY_NOW)->m_hWand); But when I tried to do the same thing in ATL, the returned handle for ID_APPLY_NOW (IDOK and IDCANCEL) is NULL. How can I get the handle of a control in the properties sheet written in ATL. Thanks a lot in advance. bin
-
Hello, everyone, In my current project, I want to display xp style button(OK, Cancel and apply) in the properties sheet. If I do it using MFC, it would be very easy. I just need to m_btnXPButton.SubclassWindow(GetDlgItem(ID_APPLY_NOW)->m_hWand); But when I tried to do the same thing in ATL, the returned handle for ID_APPLY_NOW (IDOK and IDCANCEL) is NULL. How can I get the handle of a control in the properties sheet written in ATL. Thanks a lot in advance. bin
bin8922 wrote: How can I get the handle of a control in the properties sheet written in ATL. Don't forget about this forum.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Hello, everyone, In my current project, I want to display xp style button(OK, Cancel and apply) in the properties sheet. If I do it using MFC, it would be very easy. I just need to m_btnXPButton.SubclassWindow(GetDlgItem(ID_APPLY_NOW)->m_hWand); But when I tried to do the same thing in ATL, the returned handle for ID_APPLY_NOW (IDOK and IDCANCEL) is NULL. How can I get the handle of a control in the properties sheet written in ATL. Thanks a lot in advance. bin
Does GetdlgItem(...) does not work?
MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"
-
Does GetdlgItem(...) does not work?
MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"