No changes, just minor wxMSW code cleanup: use WinStruct<>.
Use WinStruct instead of the usual ZeroMemory() + cbSize setting fragment to initialize Win32 structs that need to be initialized in this way. No real changes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5794,9 +5794,7 @@ int wxWindowMSW::HandleMenuChar(int WXUNUSED_IN_WINCE(chAccel),
|
||||
#ifndef __WXWINCE__
|
||||
const HMENU hmenu = (HMENU)lParam;
|
||||
|
||||
MENUITEMINFO mii;
|
||||
wxZeroMemory(mii);
|
||||
mii.cbSize = sizeof(MENUITEMINFO);
|
||||
WinStruct<MENUITEMINFO> mii;
|
||||
|
||||
// we could use MIIM_FTYPE here as we only need to know if the item is
|
||||
// ownerdrawn or not and not dwTypeData which MIIM_TYPE also returns, but
|
||||
|
Reference in New Issue
Block a user