コード例 #1
0
ファイル: guicheck.c プロジェクト: Azarien/open-watcom-v2
unsigned GUIIsChecked( gui_window *wnd, gui_ctl_id id )
{
    unsigned    ret;

    ret = (unsigned)
        GUISendDlgItemMessage( wnd->hwnd, id, BM_GETCHECK,
                               (WPI_PARAM1)NULL, (WPI_PARAM2)NULL );

    return( ret & 0x3 );
}
コード例 #2
0
ファイル: guicheck.c プロジェクト: jossk/open-watcom-v2
unsigned GUIIsChecked( gui_window *wnd, unsigned control )
{
    unsigned    ret;

    ret = (unsigned)
        GUISendDlgItemMessage( wnd->hwnd, control, BM_GETCHECK,
                               (WPI_PARAM1)NULL, (WPI_PARAM2)NULL );

    return( ret & 0x3 );
}
コード例 #3
0
ファイル: guicheck.c プロジェクト: Azarien/open-watcom-v2
bool GUISetChecked( gui_window *wnd, gui_ctl_id id, unsigned check )
{
    if( ( check == GUI_CHECKED ) && !( wnd->flags & IS_RES_DIALOG ) ) {
        if( GUIIsChecked( wnd, id ) != GUI_CHECKED ) {
            return( GUIProcessControlNotification( id, BN_CLICKED, wnd ) );
        }
    } else {
        GUISendDlgItemMessage( wnd->hwnd, id, BM_SETCHECK, (WPI_PARAM1)check, (WPI_PARAM2)NULL );
    }

    return( true );
}