CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - TranslateMessage
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - TranslateMessage - List
[
assembly language
]
testwin.zip
DL : 0
如何编写小于20K的Windows程序.演示如何使用:CreateWindow, CreateWindowEx, S endMessage and GetMessage TranslateMessage and DispatchMessage, CreateFont 演示如何使用API创建Windows窗口控件
Date
: 2025-07-08
Size
: 12.82kb
User
:
[
assembly language
]
testwin
DL : 0
如何编写小于20K的Windows程序.演示如何使用:CreateWindow, CreateWindowEx, S endMessage and GetMessage TranslateMessage and DispatchMessage, CreateFont 演示如何使用API创建Windows窗口控件- How compiles is smaller than the 20K Windows procedure How demonstrates uses: CreateWindow, CreateWindowEx, S endMessage and GetMessage TranslateMessage and DispatchMessage, how does CreateFont demonstrate uses API to found the Windows window to control
Date
: 2025-07-08
Size
: 13kb
User
:
刘豫晋
[
Dialog_Window
]
testwin
DL : 0
如何在Delphi中编写小于20K的Windows程序. 演示如何使用: CreateWindow,CreateWindowEx,SendMessage and GetMessage TranslateMessage and DispatchMessage, CreateFont 演示如何使用API创建Windows窗口控件-How to Delphi in the preparation of the Windows program is less than 20K. Demonstrate how to use: CreateWindow, CreateWindowEx, SendMessage and GetMessage TranslateMessage and DispatchMessage, CreateFont demonstration how to use the API to create Windows window control
Date
: 2025-07-08
Size
: 12kb
User
:
richardw
[
OS program
]
11
DL : 0
用C++实现的计算机图形中的种子填充算法,对学习编程和计算机图形学的很有帮助.-LoadIcon LoadCursor RegisterClass MessageBox CreateWindow ShowWindow UpdateWindow GetMessage TranslateMessage DispatchMessage SetPixel GetPixel InvalidateRect BeginPaint EndPaint PostQuitMessage DefWindowProc
Date
: 2025-07-08
Size
: 38kb
User
:
yxs
[
GDI-Bitmap
]
GDI Bitmap C++ Code
DL : 0
#include <Windows.h> #include <gdiplus.h> using namespace Gdiplus; // Forward declarations LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // Initialize GDI+ GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken; GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); // Create the window WNDCLASSEX wcex = { 0 }; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = WndProc; wcex.hInstance = hInstance; wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); wcex.lpszClassName = L"MyWindowClass"; RegisterClassEx(&wcex); HWND hWnd = CreateWindow(L"MyWindowClass", L"My Window", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL); ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); // Run the message loop MSG msg = { 0 }; while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } // Shutdown GDI+ GdiplusShutdown(gdiplusToken); return (int)msg.wParam; } LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(hWnd, &ps); // Create a Bitmap object and draw a line on it Bitmap bmp(100, 100); Graphics g(&bmp); Pen pen(Color(255, 0, 0, 0)); // Red pen g.DrawLine(&pen, 0, 0, 99, 99); // Draw the bitmap on the window Graphics graphics(hdc); graphics.DrawImage(&bmp, 0, 0); EndPaint(h
Date
: 2022-12-27
Size
: 392.75kb
User
:
khaledmagd73@gmail.com
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.