日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) >

[强]VC 6.0 可以这样创建对话框

發(fā)布時(shí)間:2025/3/15 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 [强]VC 6.0 可以这样创建对话框 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

// 看看代碼吧
#include "stdafx.h"
#include "resource.h"
#include <windows.h>

static unsigned char dlg_14[] =
{
??? 0xc0,0x20,0xc8,0x80,0x00,0x00,0x00,0x00,
??? 0x04,0x00,0x00,0x00,0x00,0x00,0xb4,0x00,0x39,
??? 0x00,0x00,0x00,0x00,0x00,0x47,0x00,0x6f,
??? 0x00,0x74,0x00,0x6f,0x00,0x20,0x00,0x6c,
??? 0x00,0x69,0x00,0x6e,0x00,0x65,0x00,0x00,
??? 0x00,0x08,0x00,0x4d,0x00,0x53,0x00,0x20,
??? 0x00,0x53,0x00,0x68,0x00,0x65,0x00,0x6c,
??? 0x00,0x6c,0x00,0x20,0x00,0x44,0x00,0x6c,
??? 0x00,0x67,0x00,0x00,0x00,0x00,0x00,0x00,
??? 0x00,0x02,0x50,0x00,0x00,0x00,0x00,0x07,
??? 0x00,0x09,0x00,0x32,0x00,0x0a,0x00,0xb0,
??? 0x04,0xff,0xff,0x82,0x00,0x26,0x00,0x4c,
??? 0x00,0x69,0x00,0x6e,0x00,0x65,0x00,0x20,
??? 0x00,0x4e,0x00,0x75,0x00,0x6d,0x00,0x62,
??? 0x00,0x65,0x00,0x72,0x00,0x3a,0x00,0x00,
??? 0x00,0x00,0x00,0x80,0x00,0x81,0x50,0x00,
??? 0x00,0x00,0x00,0x37,0x00,0x07,0x00,0x39,
??? 0x00,0x0c,0x00,0x02,0x01,0xff,0xff,0x81,
??? 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
??? 0x00,0x01,0x50,0x00,0x00,0x00,0x00,0x07,
??? 0x00,0x22,0x00,0x32,0x00,0x0e,0x00,0x01,
??? 0x00,0xff,0xff,0x80,0x00,0x4f,0x00,0x4b,
??? 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
??? 0x00,0x01,0x50,0x00,0x00,0x00,0x00,0x4e,
??? 0x00,0x22,0x00,0x32,0x00,0x0e,0x00,0x02,
??? 0x00,0xff,0xff,0x80,0x00,0x43,0x00,0x61,
??? 0x00,0x6e,0x00,0x63,0x00,0x65,0x00,0x6c,
??? 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};

LRESULT CALLBACK DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
int main(int argc, char* argv[])
{
?HMODULE hModule = ::GetModuleHandle(NULL);
?HINSTANCE hInst = hModule;
?HRSRC hRsrc = ::FindResource(hInst, MAKEINTRESOURCE(IDD_DIALOG1), RT_DIALOG);
?HGLOBAL hGlobal = ::LoadResource(hModule, hRsrc);
?DialogBoxIndirectParam(hInst, (LPCDLGTEMPLATE)dlg_14, NULL, (DLGPROC)DlgProc, NULL);
?return 0;
}

LRESULT CALLBACK DlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
?switch(uMsg)
?{
?case WM_CLOSE:
??::EndDialog(hDlg, IDOK);
??return TRUE;
??break;
?}
?return 0;
}?

總結(jié)

以上是生活随笔為你收集整理的[强]VC 6.0 可以这样创建对话框的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。