|
1
|
1 #include "stdafx.h"
|
|
|
2 #include "EditBoxFixes.h"
|
|
|
3 #include "wtl-pp.h"
|
|
|
4 #include "windowLifetime.h"
|
|
|
5
|
|
|
6 namespace PP {
|
|
|
7 void editBoxFix(HWND wndEdit) {
|
|
|
8 PFC_ASSERT( IsWindow(wndEdit) );
|
|
|
9 PP::subclassThisWindow<CEditPPHooks>(wndEdit);
|
|
|
10 }
|
|
|
11 void comboBoxFix(HWND wndCombo) {
|
|
|
12 PFC_ASSERT( IsWindow(wndCombo) );
|
|
|
13 CComboBox combo = wndCombo;
|
|
|
14 COMBOBOXINFO info = { sizeof(info) };
|
|
|
15 if (combo.GetComboBoxInfo(&info)) {
|
|
|
16 if ( info.hwndItem != NULL ) editBoxFix( info.hwndItem );
|
|
|
17 }
|
|
|
18 }
|
|
|
19 } |