Checkboxes

From Team Developer SqlWindows Wiki
Revision as of 12:43, 12 September 2008 by 62.58.16.59 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page covers checkbox tips & tricks.

Contents


Pointer.pngHow to set value using only the window handle of a checkbox

First you have to declare this constant

Number: BM_SETCHECK   = 0x00F1


The next piece of code checks the checkbox

Call SalSendMsg( hWndItem, BM_SETCHECK, TRUE, 0 )

UnChecking

Call SalSendMsg( hWndItem, BM_SETCHECK, FALSE, 0 )


Pointer.pngHow to set the checkbox text at the left

First you have to declare this constant

Number: BS_LEFTTEXT    = 0x00000020


The next piece of code sets the checkbox text at the left

Call VisWinSetStyle( hWndItem, BS_LEFTTEXT, TRUE )