首页
社区
课程
招聘
这样的对话框的SDK该怎么写?
发表于: 2004-9-9 23:38 4494

这样的对话框的SDK该怎么写?

2004-9-9 23:38
4494
SDK的主程序,我实在弄不出来!

资源文件如下:

//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Chinese (P.R.C.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
#ifdef _WIN32
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
#pragma code_page(936)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

123 DIALOG DISCARDABLE  0, 0, 186, 100
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Enter Registration Code"
FONT 8, "MS Sans Serif"
BEGIN
    CTEXT           "Enter the name and registration code",
                    -1,7,7,172,30
    LTEXT           "Name:",-1,7,44,22,8
    EDITTEXT        1062,33,42,146,14,ES_AUTOHSCROLL
    LTEXT           "Code:",-1,7,60,20,8
    EDITTEXT        1063,33,58,146,14,ES_UPPERCASE | ES_AUTOHSCROLL
    DEFPUSHBUTTON   "OK",1,39,78,50,14
    PUSHBUTTON      "Cancel",2,111,79,50,14
END

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE DISCARDABLE
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE DISCARDABLE
BEGIN
    "#include ""winres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE DISCARDABLE
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED

#endif    // Chinese (P.R.C.) resources
/////////////////////////////////////////////////////////////////////////////

#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 1
支持
分享
最新回复 (7)
雪    币: 150
活跃值: (116)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
2
.......
你问的是什么啊
2004-9-10 09:00
0
雪    币: 519
活跃值: (1223)
能力值: ( LV12,RANK:650 )
在线值:
发帖
回帖
粉丝
3
The DialogBoxParam function creates a modal dialog box from a dialog box template resource. Before displaying the dialog box, the function passes an application-defined value to the dialog box procedure as the lParam parameter of the WM_INITDIALOG message. An application can use this value to initialize dialog box controls.

int DialogBoxParam(

    HINSTANCE hInstance,        // handle to application instance
    LPCTSTR lpTemplateName,        // identifies dialog box template
    HWND hWndParent,        // handle to owner window
    DLGPROC lpDialogFunc,        // pointer to dialog box procedure  
    LPARAM dwInitParam         // initialization value
   );
2004-9-10 15:24
0
雪    币: 205
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
2004-9-10 15:38
0
雪    币: 75
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
对话框的SDK???
2004-9-10 16:09
0
雪    币: 1540
活跃值: (2807)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
还有什么地方需要修改那?

最初由 mhsong 发布
附件:4limee.rar 附件:4limee.rar
2004-9-10 17:13
0
雪    币: 205
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
改一下
int  APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)
{
        // TODO: Place code here.
        DialogBox( NULL, MAKEINTRESOURCE(IDD_DIALOG1), NULL, (DLGPROC) DialogProc);
        return 0;
}
2004-9-10 22:39
0
雪    币: 258
活跃值: (230)
能力值: ( LV12,RANK:770 )
在线值:
发帖
回帖
粉丝
8
MFC不好么・・・
MFC下的对话框类很好用的!・
2004-9-11 12:23
0
游客
登录 | 注册 方可回帖
返回