当前位置:网站首页>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;
}
边栏推荐
- LeetCode·
- 78. 子集
- cmd cpm 命令汇总
- NFT因无意义而美丽
- YOLOv3: An Incremental Improvement
- TCP experimental verification
- Win11 method of changing disk drive letter
- STM32 - PWM learning notes
- Etcdv3 actual combat (III) -prevkv description and related operations
- Chen Yili, China Academy of communications technology: cost reduction and efficiency increase are the greatest value of Enterprise Cloud native applications
猜你喜欢
![[Yuri crack man] brings you easy understanding - deep copy and shallow copy](/img/26/b7330c7f5fdac55c8f5e9fa24658ee.png)
[Yuri crack man] brings you easy understanding - deep copy and shallow copy

Opencv annotates the image (picture frame + writing)

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

STM32 - DMA notes

DDD落地的那叫一个高级

Unknown-Aware Object Detection:Learning What You Don’t Know from Videos in the Wild(CVPR 2022)

ue4如何进行静态渲染?5个步骤生成静态渲染

QT笔记——临时的悬浮窗口

Chen Yili, China Academy of communications technology: cost reduction and efficiency increase are the greatest value of Enterprise Cloud native applications

Canvas -- draw curve -- wall clock, pie chart, five pointed star
随机推荐
Canvas -- draw text -- modification of pie chart
How to reinstall win7 system?
记一次SQL优化
Teach you to rely on management hand in hand
离线数据仓库从0到1-阶段一资源购买配置
Managing databases in a hybrid cloud: eight key considerations
班级里有一群学生考试结果出来了,考了语文和数学两门,请筛选出总分是第一的同学
There are a group of students in the class who have got the test results in Chinese and mathematics. Please select the students whose total score is the first
ENVI_ Idl: create HDF5 file and write data (take writing GeoTIFF file to HDF file as an example) + detailed parsing
Unknown-Aware Object Detection:Learning What You Don’t Know from Videos in the Wild(CVPR 2022)
文件操作(一)——文件简介与文件的打开方式和关闭
了解预加载和懒加载、学会缓动动画
LeetCode·每日一题·剑指 Offer || 115.重建序列·拓扑排序
Leetcode · daily question · sword finger offer | | 115. reconstruction sequence · topological sorting
Hello World driver (II) - primary version
GoLang 抽奖系统 设计
The source of everything, the choice of code branching strategy
一篇文章让你理解 云原生 容器化相关
QT notes - Q_ Q and Q_ D learning
Opencv报错:(parameter or structure field))Unrecognized or unsupported array type in functon ‘cvGetMat‘