git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36660
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// radiobox part not belonging to any radiobutton)
//
::WinSetWindowPos( (HWND)m_ahRadioButtons[i]
// radiobox part not belonging to any radiobutton)
//
::WinSetWindowPos( (HWND)m_ahRadioButtons[i]
,(LONG)nXOffset
,(LONG)nYOffset
,(LONG)nWidthBtn
,(LONG)nXOffset
,(LONG)nYOffset
,(LONG)nWidthBtn
long lStyleBtn = BS_AUTORADIOBUTTON | WS_TABSTOP | WS_VISIBLE;
int nNewId = NewControlId();
long lStyleBtn = BS_AUTORADIOBUTTON | WS_TABSTOP | WS_VISIBLE;
int nNewId = NewControlId();
- if (i == 0 && lStyle == 0)
lStyleBtn |= WS_GROUP;
HWND hWndBtn = (WXHWND)::WinCreateWindow ( GetHwndOf(pParent)
lStyleBtn |= WS_GROUP;
HWND hWndBtn = (WXHWND)::WinCreateWindow ( GetHwndOf(pParent)
,lStyleBtn
,0, 0, 0, 0
,GetWinHwnd(pParent)
,lStyleBtn
,0, 0, 0, 0
,GetWinHwnd(pParent)
,(HMENU)nNewId
,NULL
,NULL
,(HMENU)nNewId
,NULL
,NULL
- // Create a dummy radio control to end the group.
+ // Create a dummy control to end the group.
//
(void)::WinCreateWindow ( GetHwndOf(pParent),
WC_BUTTON,
"",
//
(void)::WinCreateWindow ( GetHwndOf(pParent),
WC_BUTTON,
"",
- WS_GROUP | BS_AUTORADIOBUTTON,
0, 0, 0, 0,
GetWinHwnd(pParent),
HWND_TOP,
0, 0, 0, 0,
GetWinHwnd(pParent),
HWND_TOP,
,sizeof(LONG)
,(PVOID)&lColor
);
,sizeof(LONG)
,(PVOID)&lColor
);
- ::WinSetPresParam( m_hWnd
- ,PP_BORDERDARKCOLOR
- ,sizeof(LONG)
- ,(PVOID)&lColor
- );
- lColor = (LONG)m_backgroundColour.GetPixel();
+ lColor = (LONG)m_backgroundColour.GetPixel();
::WinSetPresParam( m_hWnd
,PP_BACKGROUNDCOLOR
,sizeof(LONG)
,(PVOID)&lColor
);
::WinSetPresParam( m_hWnd
,PP_BACKGROUNDCOLOR
,sizeof(LONG)
,(PVOID)&lColor
);
- ::WinSetPresParam( m_hWnd
- ,PP_BORDERLIGHTCOLOR
- ,sizeof(LONG)
- ,(PVOID)&lColor
- );
SetXComp(0);
SetYComp(0);
SetSelection(0);
SetXComp(0);
SetYComp(0);
SetSelection(0);
int nHeightOld;
int nXx = nX;
int nYy = nY;
int nHeightOld;
int nXx = nX;
int nYy = nY;
-#if RADIOBTN_PARENT_IS_RADIOBOX
- int nXOffset = 0;
- int nYOffset = 0;
-#else
int nXOffset = nXx;
int nYOffset = nYy;
int nXOffset = nXx;
int nYOffset = nYy;
int nCx1;
int nCy1;
wxSize vMaxSize = GetMaxButtonSize();
int nCx1;
int nCy1;
wxSize vMaxSize = GetMaxButtonSize();
// radiobox part not belonging to any radiobutton)
//
::WinSetWindowPos( (HWND)m_ahRadioButtons[i]
// radiobox part not belonging to any radiobutton)
//
::WinSetWindowPos( (HWND)m_ahRadioButtons[i]
,(LONG)nXOffset
,(LONG)nYOffset
,(LONG)nWidthBtn
,(LONG)nXOffset
,(LONG)nYOffset
,(LONG)nWidthBtn
} // end of wxRadioBox::GetMaxButtonSize
void wxRadioBox::GetPosition( int* pnX,
} // end of wxRadioBox::GetMaxButtonSize
void wxRadioBox::GetPosition( int* pnX,
+ int* WXUNUSED(pnY) ) const
{
wxWindowOS2* pParent = GetParent();
RECT vRect = { -1, -1, -1, -1 };
{
wxWindowOS2* pParent = GetParent();
RECT vRect = { -1, -1, -1, -1 };
vPoint.y = vPt.y;
}
if (pnX)
vPoint.y = vPt.y;
}
if (pnX)
- *pnX = vPoint.x;
- if (pnY)
- *pnY = vPoint.y;
} // end of wxRadioBox::GetPosition
// Get single selection, for single choice list items
} // end of wxRadioBox::GetPosition
// Get single selection, for single choice list items
switch(uVk)
{
case VK_LEFT:
switch(uVk)
{
case VK_LEFT: