1.金山界面库bkskin.h 中目前定义了BkWnd的六种状态。
// State Define enum { BkWndState_Normal = 0x00000000UL, BkWndState_Hover = 0x00000001UL, BkWndState_PushDown = 0x00000002UL, BkWndState_Check = 0x00000004UL, BkWndState_Invisible = 0x00000008UL, BkWndState_Disable = 0x00000010UL, };
2.因为是位操作,所以判断是否选中应该如下:
if ((GetItemState(IDC_CTL_LOGINSET_SYNCHRONOUS_SYHQ) & BkWndState_Check)==BkWndState_Check) { 。。。 }