这篇教程C++ CreateButton函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中CreateButton函数的典型用法代码示例。如果您正苦于以下问题:C++ CreateButton函数的具体用法?C++ CreateButton怎么用?C++ CreateButton使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了CreateButton函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: CreateYesNoCancel//MB_YESNOCANCELstatic VOID CreateYesNoCancel(HANDLE hWnd,__MESSAGE_BOX* pMsgBox){ int x,y; x = pMsgBox->dwMsgBoxWidth - MSGBOX_BUTTON_WIDTH * 3; //3 buttons. x -= MSGBOX_BUTTON_SPACE * 2; //Skip the space between these 3 buttons. x /= 2; y = pMsgBox->dwMsgBoxHeight - 10 - GlobalParams.dwWndCaptionHeight; y -= MSGBOX_BUTTON_HEIGHT; if(y < 0) { y = 0; } //Create first button. CreateButton(hWnd,"是(Y)",ID_YES,x,y,MSGBOX_BUTTON_WIDTH,MSGBOX_BUTTON_HEIGHT); x += MSGBOX_BUTTON_WIDTH; x += MSGBOX_BUTTON_SPACE; //Create the second button. CreateButton(hWnd,"否(N)",ID_NO,x,y,MSGBOX_BUTTON_WIDTH,MSGBOX_BUTTON_HEIGHT); x += MSGBOX_BUTTON_WIDTH; x += MSGBOX_BUTTON_SPACE; //Create the third button. CreateButton(hWnd,"取消(C)",ID_CANCEL,x,y,MSGBOX_BUTTON_WIDTH,MSGBOX_BUTTON_HEIGHT); return;}
开发者ID:AlexShiLucky,项目名称:HelloX_GUI,代码行数:26,
|