delete gs_fontDefault;
}
-wxColour wxSystemSettings::GetSystemColour(
- int nIndex
+wxColour wxSystemSettingsNative::GetColour(
+ wxSystemColour nIndex
)
{
COLORREF vRef;
break;
}
return(vCol);
-} // end of wxSystemSettings::GetSystemColour
+} // end of wxSystemSettingsNative::GetColour
-wxFont wxSystemSettings::GetSystemFont(int index)
+wxFont wxSystemSettingsNative::GetFont(
+ wxSystemFont index
+)
{
// TODO
switch (index)
}
// Get a system metric, e.g. scrollbar size
-int wxSystemSettings::GetSystemMetric(int index)
+int wxSystemSettingsNative::GetMetric(
+ wxSystemMetric index
+)
{
switch ( index)
{
return 0;
}
-bool wxSystemSettings::GetCapability(int index)
+bool wxSystemSettingsNative::HasFeature(
+ wxSystemFeature index
+)
{
switch (index)
{
case wxSYS_CAN_ICONIZE_FRAME:
+ return TRUE;
+
case wxSYS_CAN_DRAW_FRAME_DECORATIONS:
- return TRUE; break;
+ return FALSE;
+
default:
return FALSE;
}
}
// create a new (suspended) thread (for the given thread object)
- bool Create(wxThread* pThread);
+ bool Create( wxThread* pThread
+ ,unsigned int uStackSize
+ );
// suspend/resume/terminate
bool Suspend();
bool wxThreadInternal::Create(
wxThread* pThread
+, unsigned int uStackSize
)
{
APIRET ulrc;
,(PFNTHREAD)wxThreadInternal::OS2ThreadStart
,(ULONG)pThread
,CREATE_SUSPENDED | STACK_SPARSE
- ,8192L
+ ,(ULONG)uStackSize
);
if(ulrc != 0)
{
// create/start thread
// -------------------
-wxThreadError wxThread::Create()
+wxThreadError wxThread::Create(
+ unsigned int uStackSize
+)
{
- if ( !m_internal->Create(this) )
+ if ( !m_internal->Create(this, uStackSize) )
return wxTHREAD_NO_RESOURCE;
return wxTHREAD_NO_ERROR;
// the name of the default wxWindows class
extern const wxChar* wxCanvasClassName;
extern const wxChar* wxFrameClassName;
+extern void wxAssociateWinWithHandle( HWND hWnd
+ ,wxWindowOS2* pWin
+ );
// ============================================================================
// wxTopLevelWindowMSW implementation
::WinQueryWindowPos(GetHwnd(), &m_vSwpClient);
} // end of wxTopLevelWindowOS2::AlterChildPos
+void wxTopLevelWindowOS2::UpdateInternalSize(
+ wxWindow* pChild
+, int nHeight
+)
+{
+ pChild->MoveChildren(m_vSwpClient.cy - nHeight);
+ ::WinQueryWindowPos(GetHwnd(), &m_vSwpClient);
+} // end of wxTopLevelWindowOS2::UpdateInternalSize
+
// ----------------------------------------------------------------------------
// wxTopLevelWindowOS2 client size
// ----------------------------------------------------------------------------