国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

Create Window

2019-11-10 18:39:58
字體:
來源:轉載
供稿:網友

1 Create Window

The first step to Graphics PRogramming is to create a Window. Some keynotes on window creation:

1.1 Use Template

Start from the template provided by Visual Studio

1.2 Get module instance

Although hInstance is passed in in WinMain, it’s better not to pass the hInstance around. Instead, use GetModuleHandle to get handle to module instance;

hInstance = GetModuleHandle(nullptr);

1.3 Register window class

When filling out WNDCLASSEX, two fields are required.

lpszClassName && lpfnWndProc are the only MUST for WNDCLASSEX.

Leave the other fields as in the template.

1.4 ShowMessage with mShowCmd SW_SHOWDEFAULT

Avoid use 0 as mShowCmd, since 0 meas SW_HIDE.

1.5 Destroy window

PostQuitMessage on WM_DESTROY, and catch WM_QUIT in main loop.


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 顺昌县| 乌兰察布市| 罗山县| 河西区| 闽清县| 肥西县| 博白县| 潼南县| 古交市| 光山县| 桂林市| 远安县| 平原县| 右玉县| 富源县| 哈尔滨市| 弥勒县| 浪卡子县| 龙口市| 左贡县| 嵊泗县| 嘉鱼县| 繁昌县| 通榆县| 云安县| 渝中区| 施甸县| 沂源县| 淮北市| 堆龙德庆县| 额尔古纳市| 莱芜市| 调兵山市| 绥滨县| 麻阳| 高青县| 抚顺市| 铁岭市| 巴林右旗| 荣昌县| 怀宁县|