当前位置:网站首页>ELS initialization window class
ELS initialization window class
2022-07-26 03:15:00 【joker_ 0030】
#include<Windows.h>
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPreInstance,LPSTR ipCmdLine,int nCmdShow)
{
// Initialize window class .
WNDCLASSEX db;//WNDCLASS An extension of .
db.cbClsExtra = 0;// An extra space immediately following the end of the window class , Do not set to 0.
db.cbSize = sizeof(WNDCLASSEX);// Structure size ,sizeof(WNDCLASSEX).
db.cbWndExtra = 0;// An extra space immediately following the end of the window's real column , Do not set to 0.
db.hbrBackground = (HBRUSH)COLOR_WINDOW;// Background brush of window class , Brush handle for background , It can also be the system color value .
db.hCursor = NULL;// Cursor style , Do not set to NULL,TODO, test .
db.hIcon = NULL;// Icon , Do not set to NULL,TODO, test . Loadlcon(NULL,IDI_APPLICATION).
db.hIconSm = NULL;// Small icons , Do not set to NULL,TODO, test .
db.hInstance = hInstance;// Current function real column handle ,hinstance.
db.lpfnWndProc = ;// Callback function address .WinProc.
db.lpszClassName = "elsfang_kuai";// Don't repeat the name .//"NumRain", The identification of the window , For the system .
db.lpszMenuName = NULL;// The name of the menu , nothing NULL, The name of the directory resource is the same . If you use integer id Show menu , It can be used MAKEINTRESOURCE Define a macro .
db.style = CS_HREDRAW | CS_VREDRAW;// Style of window class , Its value can be any combination of window style values .CS_HREDRAW|CS_VREDRAW, This is a vertical refresh and horizontal refresh , Window size changes , Redraw active area .
//12 Members cannot write more or less , Otherwise, the creation of windows will fail .
// Warning C4133“ = ”: from “char[13]” To “LPCWSTR” Incompatible type for . The solution will attribute -> senior -> Character set ( from Unicode Change character set to multi byte character set ).
return 0;
}
边栏推荐
猜你喜欢

重装Win7系统如何进行?

Win11麦克风权限的开启方法

Leetcode · daily question · sword finger offer | | 115. reconstruction sequence · topological sorting

文件操作(一)——文件简介与文件的打开方式和关闭

实现一个方法,找出数组中的第k大和第m大的数字相加之和

How to close the case prompt icon of win11? Closing method of win11 case prompt Icon
![[sql] usage of self connection](/img/92/92474343b4b4e6ea60453b4799cb55.jpg)
[sql] usage of self connection

"Xiao Deng's view" the value brought by Siem to enterprises (II)

Win11隐藏输入法状态栏方法

STM——EXTI外部中断学习笔记
随机推荐
Dataframe sorting: datetime format splitting; Delete a specific line; Group integration.
如何用U盘进行装机?
Win11隐藏输入法状态栏方法
Win11 hide input method status bar method
Golang 中‘...‘的用法
Win11大小写提示图标怎么关闭?Win11大小写提示图标的关闭方法
Canvas -- draw text -- modification of pie chart
NFT因无意义而美丽
Summary of Huawei virtualization fusioncompute knowledge points
[SQL] 自连接的用法
使用anaconda配置gpu版本的tensorflow(30系列以下显卡)
Win11麦克风权限的开启方法
中国信通院陈屹力:降本增效是企业云原生应用的最大价值
Use eventlog analyzer for log forensics analysis
LeetCode·
经典面试问题——OOP语言的三大特征
URDF 语法详解
Opencv saves pictures in the specified format
els 修改光标、修改图标
Quick check of OGC WebGIS common service standards (wms/wmts/tms/wfs)