How to get the handle of a control in properties sheet.
ATL / WTL / STL
1
Posts
1
Posters
0
Views
1
Watching
-
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