tailieunhanh - Giáo Trình How To Use AutoIt A Professional Manner part 80
Tham khảo tài liệu 'giáo trình how to use autoit a professional manner part 80', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | SnCtlType DllStructGetData SstDrawItem 1 If SnCtlType ODT_BUTTON Then nCtrlID DllStructGetData SstDrawItem 2 SnItemState DllStructGetData SstDrawItem 5 ShCtrl DllStructGetData SstDrawItem 6 ShDC DllStructGetData SstDrawItem 7 SnLeft DllStructGetData SstDrawItem 8 1 SnTop DllStructGetData SstDrawItem 8 2 SnRight DllStructGetData SstDrawItem 8 3 SnBottom DllStructGetData SstDrawItem 8 4 SsText Ownerdrawn Button SnTextColor 0x5555DD SnBackColor OxFFEEDD DrawButton ShWnd ShCtrl ShDC SnLeft SnTop SnRight SnBottom SnItemState SsText SnTextColor SnBackColor SstDrawItem 0 Return 1 EndIf SstDrawItem 0 Return SGUI_RUNDEFMSG Proceed the default Autoit3 internal message commands EndFunc MY_WM_DRAWITEM The main drawing procedure Func DrawButton ShWnd ShCtrl ShDC SnLeft SnTop SnRight SnBottom SnItemState SsText SnTextColor SnBackColor Local SbDefault FALSE Local Const SGWL_STYLE -16 Local Const SODS_SELECTED 0x0001 Local Const SODS_GRAYED 0x0002 Local Const SODS_DISABLED 0x0004 Local Const SODS_CHECKED 0x0008 Local Const SODS_FOCUS 0x0010 Local Const SODS_HOTLIGHT 0x0040 Local Const SODS_INACTIVE 0x0080 Local Const SODS_NOACCEL 0x0100 Local Const SODS_NOFOCUSRECT 0x0200 Local Const DFC_BUTTON 4 Local Const DFCS_BUTTONPUSH 0x0010 Local SbChecked BitAND SnItemState SODS_CHECKED Local SbFocused BitAND SnItemState SODS_FOCUS Local SbGrayed BitAND SnItemState BitOR SODS_GRAYED SODS_DISABLED Local SbSelected BitAND SnItemState SODS_SELECTED SstRect DllStructCreate int int int int DllStructSetData SstRect 1 SnLeft DllStructSetData SstRect 2 SnTop DllStructSetData SstRect 3 SnRight DllStructSetData SstRect 4 SnBottom If SbGrayed Then SnClrTxt SetTextColor hDC GetSysColor SCOLOR_HIGHLIGHTTEXT ElseIf SnTextColor -1 Then SnClrTxt SetTextColor ShDC GetSysColor SCOLOR_BTNTEXT Else SnClrTxt SetTextColor ShDC SnTextColor EndIf If SnBackColor -1 Then ShBrush GetSysColorBrush SCOLOR_BTNFACE SnClrSel GetSysColor SCOLOR_BTNFACE Else ShBrush CreateSolidBrush SnBackColor SnClrSel SnBackColor EndIf .
đang nạp các trang xem trước