Win32编辑框消息学习

/*----------------------------------------
    2020.10.11, by bo
  ----------------------------------------*/
 
#include <windows.h>
 
LRESULT CALLBACK WndProc    (HWND, UINT, WPARAM, LPARAM) ;
 
#define ID_MyEdit     1
 
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
                    PSTR szCmdLine, int iCmdShow)
{
     static TCHAR szAppName[] = TEXT ("MyEdit1") ;
     HWND         hwnd ;
     MSG          msg ;
     WNDCLASS     wndclass ;
     
     wndclass.style         = CS_HREDRAW | CS_VREDRAW ;
     wndclass.lpfnWndProc   = WndProc ;
     wndclass.cbClsExtra    = 0 ;
     wndclass.cbWndExtra    = 0 ;
     wndclass.hInstance     = hInstance ;
     wndclass.hIcon         = LoadIcon (NULL, IDI_APPLICATION) ;
     wndclass.hCursor       = LoadCursor (NULL, IDC_ARROW) ;
     wndclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH) ;
     wndclass.lpszMenuName  = NULL ;

相关推荐

  1. Win32编辑消息学习

    2023-12-09 02:50:02       51 阅读
  2. Win32 HIWORD和LOWORD宏学习

    2023-12-09 02:50:02       54 阅读
  3. Win32 MDI 程序学习1

    2023-12-09 02:50:02       52 阅读
  4. win32 窗口过程学习1

    2023-12-09 02:50:02       48 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-09 02:50:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-09 02:50:02       101 阅读
  3. 在Django里面运行非项目文件

    2023-12-09 02:50:02       82 阅读
  4. Python语言-面向对象

    2023-12-09 02:50:02       91 阅读

热门阅读

  1. postgresql-effective_cache_size参数详解

    2023-12-09 02:50:02       44 阅读
  2. leetcode - 2264. Largest 3-Same-Digit Number in String

    2023-12-09 02:50:02       52 阅读
  3. 实例分割网络:Mask RCNN

    2023-12-09 02:50:02       55 阅读
  4. nodejs fs模块

    2023-12-09 02:50:02       68 阅读
  5. C/C++ 实现枚举网上邻居信息

    2023-12-09 02:50:02       52 阅读
  6. unix dgram通信

    2023-12-09 02:50:02       52 阅读