oqqsoap1234567
alexsendar
2017-03-08 03:49

win32 sdk 怎样接受.rc 里面定义的按钮点击事件?

15
  • win32
  • sdk

IDC_BTPREVIOUS 是放到WM_COMMAND 里吗?

IDD_DIALOG DIALOGEX 0, 0, 540, 300
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Event Detail"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
    ICON            128,IDC_STATIC,14,14,21,20
//     LTEXT           "TraceTools, Version 1.0",IDC_STATIC,42,14,114,8,SS_NOPREFIX
//     LTEXT           "Copyright (C) 2017",IDC_STATIC,42,26,114,8
    DEFPUSHBUTTON   "Previous",IDC_BTPREVIOUS,420,280,50,14,WS_GROUP
    DEFPUSHBUTTON   "Next",IDC_BTNEXT,480,280,50,14,WS_GROUP
END

图片说明

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答