Edit a customized categories as follows:
1 class CCheckEditEx : public CWindowImpl< CCheckEditEx, CEdit >
SubclassWindow which function to achieve the following:
. 1 BOOL CCheckEditEx :: SubclassWindow (HWND the HWND) 2 { . 3 ATLASSERT (== NULL :: the GetWindow (HWND, the GW_CHILD)); . 4 IF (CWindowImpl <CCheckEditEx, the CEdit> :: SubclassWindow (HWND)) . 5 { . 6 // perform your initialization function . 7 InitStr (); . 8 . 9 return TRUE; 10 } . 11 return FALSE; 12 is }
Note: tag yellow part needs to be consistent.