// TODO:
}
-void wxWindow::Refresh(bool eraseBack = TRUE, const wxRect *rect = NULL)
+void wxWindow::Refresh(bool eraseBack, const wxRect *rect)
{
// TODO:
}
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
) const
{
// TODO:
,int pos
,int thumbVisible
,int range
- ,bool refresh = TRUE
+ ,bool refresh
)
{
// TODO:
void wxWindow::SetScrollPos( int orient
,int pos
- ,bool refresh = TRUE
+ ,bool refresh
)
{
// TODO:
void wxWindow::ScrollWindow( int dx
,int dy
- ,const wxRect* rect = NULL
+ ,const wxRect* rect
)
{
// TODO:
void wxWindow::DoSetSize(int x, int y,
int width, int height,
- int sizeFlags = wxSIZE_AUTO)
+ int sizeFlags)
{
// TODO:
}
wxWindow* wxWindow::FindFocus()
{
+ wxWindow* window = NULL;
// TODO:
- return(this);
+ return(window);
}
void wxWindow::DragAcceptFiles(bool accept)
wxObject* wxWindow::GetChild(int number) const
{
// TODO:
- return(this);
+ return((wxObject*)this);
+}
+
+WXWidget wxWindow::GetHandle() const
+{
+ // TODO:
+ return((WXWidget)m_hWnd);
}
void wxWindow::PMDetachWindowMenu()
{
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 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 ( wxStrcmp(buf, _T("&Window")) == 0 )
{
- RemoveMenu(hMenu, i, MF_BYPOSITION);
-
+ WinSendMsg(hMenu, MM_DELETEITEM, MPFROM2SHORT(i, TRUE), 0);
break;
}
}
}
}
+
void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win)
{
// adding NULL hWnd is (first) surely a result of an error and