git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3259
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// on a listbox)
virtual void OnDefaultAction(wxControl *initiatingItem);
// on a listbox)
virtual void OnDefaultAction(wxControl *initiatingItem);
void OnEraseBackground(wxEraseEvent& event);
void OnChar(wxKeyEvent& event);
void OnKeyDown(wxKeyEvent& event);
void OnEraseBackground(wxEraseEvent& event);
void OnChar(wxKeyEvent& event);
void OnKeyDown(wxKeyEvent& event);
DECLARE_EVENT_TABLE()
private:
DECLARE_EVENT_TABLE()
private:
- void Init();
- void PMDetachWindowMenu();
+ void Init();
+ void PMDetachWindowMenu();
+ WXHWND GetHwnd() const { return m_hWnd; }
+ void SetHwnd(WXHWND hWnd) { m_hWnd = hWnd; }
};
////////////////////////////////////////////////////////////////////////
};
////////////////////////////////////////////////////////////////////////
### Static library
$(WXDIR)\lib\wx.lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
### Static library
$(WXDIR)\lib\wx.lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
del $(LIBTARGET)
ilib $(LINKFLAGS) $@ @<<
$**
del $(LIBTARGET)
ilib $(LINKFLAGS) $@ @<<
$**
-void wxWindow::Refresh(bool eraseBack = TRUE, const wxRect *rect = NULL)
+void wxWindow::Refresh(bool eraseBack, const wxRect *rect)
void wxWindow::GetTextExtent( const wxString& string
,int* x
,int* y
void wxWindow::GetTextExtent( const wxString& string
,int* x
,int* y
- ,int* descent = NULL
- ,int* externalLeading = NULL
- ,const wxFont* theFont = NULL
+ ,int* descent
+ ,int* externalLeading
+ ,const wxFont* theFont
,int pos
,int thumbVisible
,int range
,int pos
,int thumbVisible
,int range
void wxWindow::SetScrollPos( int orient
,int pos
void wxWindow::SetScrollPos( int orient
,int pos
void wxWindow::ScrollWindow( int dx
,int dy
void wxWindow::ScrollWindow( int dx
,int dy
- ,const wxRect* rect = NULL
void wxWindow::DoSetSize(int x, int y,
int width, int height,
void wxWindow::DoSetSize(int x, int y,
int width, int height,
- int sizeFlags = wxSIZE_AUTO)
wxWindow* wxWindow::FindFocus()
{
wxWindow* wxWindow::FindFocus()
{
+ wxWindow* window = NULL;
}
void wxWindow::DragAcceptFiles(bool accept)
}
void wxWindow::DragAcceptFiles(bool accept)
wxObject* wxWindow::GetChild(int number) const
{
// TODO:
wxObject* wxWindow::GetChild(int number) const
{
// TODO:
+ return((wxObject*)this);
}
void wxWindow::PMDetachWindowMenu()
}
void wxWindow::PMDetachWindowMenu()
{
HMENU hMenu = (HMENU)m_hMenu;
{
HMENU hMenu = (HMENU)m_hMenu;
- int N = ::GetMenuItemCount(hMenu);
+ int N = (int)WinSendMsg(hMenu, MM_QUERYITEMCOUNT, 0, 0);
int i;
for (i = 0; i < N; i++)
{
wxChar buf[100];
int i;
for (i = 0; i < N; i++)
{
wxChar buf[100];
- int chars = GetMenuString(hMenu, i, buf, 100, MF_BYPOSITION);
+ int chars = (int)WinSendMsg(hMenu, MM_QUERYITEMTEXT, MPFROM2SHORT(i, N), buf);
if ( !chars )
{
wxLogLastError(_T("GetMenuString"));
if ( !chars )
{
wxLogLastError(_T("GetMenuString"));
if ( wxStrcmp(buf, _T("&Window")) == 0 )
{
if ( wxStrcmp(buf, _T("&Window")) == 0 )
{
- RemoveMenu(hMenu, i, MF_BYPOSITION);
-
+ WinSendMsg(hMenu, MM_DELETEITEM, MPFROM2SHORT(i, TRUE), 0);
void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win)
{
// adding NULL hWnd is (first) surely a result of an error and
void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win)
{
// adding NULL hWnd is (first) surely a result of an error and