git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45840
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
dc.SetFont(GetFontToUse());
dc.SetFont(GetFontToUse());
- dc.GetTextExtent(str, (long *)pwidth, (long *)pheight);
+ wxCoord w, h;
+ dc.GetTextExtent(str, &w, &h);
+ *pwidth = w;
+ *pheight = h;
// add space at the end of the menu for the submenu expansion arrow
// this will also allow offsetting the accel string from the right edge
// add space at the end of the menu for the submenu expansion arrow
// this will also allow offsetting the accel string from the right edge