no message
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,6 +26,8 @@
|
|||||||
// General features
|
// General features
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#define wxUSE_FILESYSTEM 1 // better have this is you want to compile wxHTML
|
||||||
|
|
||||||
#define wxUSE_PCX 1 // Utilize PCX images
|
#define wxUSE_PCX 1 // Utilize PCX images
|
||||||
|
|
||||||
#define wxUSE_PNM 1 // Utilize PNM images
|
#define wxUSE_PNM 1 // Utilize PNM images
|
||||||
|
@@ -26,6 +26,8 @@
|
|||||||
// General features
|
// General features
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#define wxUSE_FILESYSTEM 1 // better have this is you want to compile wxHTML
|
||||||
|
|
||||||
#define wxUSE_PCX 1 // Utilize PCX images
|
#define wxUSE_PCX 1 // Utilize PCX images
|
||||||
|
|
||||||
#define wxUSE_PNM 1 // Utilize PNM images
|
#define wxUSE_PNM 1 // Utilize PNM images
|
||||||
|
@@ -527,23 +527,25 @@ void wxFrame::SetMenuBar(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxCHECK_RET(!pMenuBar->GetFrame(), wxT("this menubar is already attached"));
|
m_frameMenuBar = NULL;
|
||||||
|
|
||||||
if (m_frameMenuBar)
|
// Can set a menubar several times.
|
||||||
delete m_frameMenuBar;
|
// TODO: how to prevent a memory leak if you have a currently-unattached
|
||||||
|
// menubar? wxWindows assumes that the frame will delete the menu (otherwise
|
||||||
|
// there are problems for MDI).
|
||||||
|
if (pMenuBar->GetHMenu())
|
||||||
|
{
|
||||||
|
m_hMenu = pMenuBar->GetHMenu();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pMenuBar->Detach();
|
||||||
|
|
||||||
m_hMenu = pMenuBar->Create();
|
m_hMenu = pMenuBar->Create();
|
||||||
m_ulMenubarId = pMenuBar->GetMenubarId();
|
|
||||||
if (m_ulMenubarId != FID_MENU)
|
|
||||||
{
|
|
||||||
::WinSetWindowUShort( m_hMenu
|
|
||||||
,QWS_ID
|
|
||||||
,(unsigned short)m_ulMenubarId
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!m_hMenu)
|
if (!m_hMenu)
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
InternalSetMenuBar();
|
InternalSetMenuBar();
|
||||||
|
|
||||||
|
@@ -84,6 +84,10 @@
|
|||||||
#define GET_Y_LPARAM(mp) ((unsigned short)(unsigned long)(mp >> 16))
|
#define GET_Y_LPARAM(mp) ((unsigned short)(unsigned long)(mp >> 16))
|
||||||
#endif // GET_X_LPARAM
|
#endif // GET_X_LPARAM
|
||||||
|
|
||||||
|
#ifndef CW_USEDEFAULT
|
||||||
|
# define CW_USEDEFAULT ((int)0x80000000)
|
||||||
|
#endif
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// global variables
|
// global variables
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user