MessageBox
来源:互联网 发布:ce数组 编辑:程序博客网 时间:2024/05/16 00:24
第一个Windows程序。
知识点:
TCHAR 宽字符类型
TEXT 转化成宽字符 #define __TEXT(quote) L##quote
sprintf类函数 那个_vsntprintf 指针参数还不是很懂
#include<windows.h>#include<tchar.h>#include<stdio.h>int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow){//MessageBox(NULL,TEXT("Hello,Windows 98!"),TEXT("HelloMsg"),MB_YESNOCANCEL|MB_DEFBUTTON1|MB_ICONSTOP);int cxScreen , cyScreen;cxScreen = GetSystemMetrics(SM_CXSCREEN);cyScreen = GetSystemMetrics(SM_CYSCREEN);TCHAR szBuffer[1024];_stprintf(szBuffer,L"The screen is %i pixels wide by %i pexels high.", cxScreen,cyScreen);MessageBox(NULL,szBuffer,TEXT("ScrnSize"),0); return 0;}
- MessageBox
- MessageBox()
- MessageBox
- MessageBox
- messageBox
- MessageBox
- MessageBox
- MessageBox()
- MessageBox
- MessageBox
- messagebox
- MessageBox
- MessageBox
- MessageBox
- MessageBox
- MessageBox();
- MessageBox
- MessageBox
- 我也来玩玩 CSDN blog
- java.lang.OutOfMemoryError: PermGen space
- java加密算法简要介绍
- How do I upgrade a single MongoDB node to sharding mode?
- 双调欧几里得旅行商问题 Bitonic_TSP poj 2677
- MessageBox
- centos下smb配置
- Eclipse快捷键
- 选择排序排列字符串
- 如何判断Javascript对象是否存在
- Vim 终极自动补全插件:NeoComplCache
- 关于foreach语句简单介绍
- SpringFactory.java
- Mysql Install on ubuntu