Mercurial > foo_out_sdl
comparison foosdk/sdk/libPPUI/EditBoxFix.cpp @ 1:20d02a178406 default tip
*: check in everything else
yay
| author | Paper <paper@tflc.us> |
|---|---|
| date | Mon, 05 Jan 2026 02:15:46 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:e9bb126753e7 | 1:20d02a178406 |
|---|---|
| 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 } |
