WinMain


Windows SDK

#include <windows.h>

WinMain

int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
int
PASCAL
WINAPI
APIENTRY
  • HINSTANCE hInstance
  • HINSTANCE hPrevInstance? hPreInst?
  • LPSTR lpszCmdLine? lpCmdLine?
  • int nCmdShow?
g_hInstance = hInstance; // インスタンスハンドル保存
MSG msg;
  • ウィンドウクラス登録 -- RegisterClassEx?
    WNDCLASSEX wc;
  • ウインドウ作成 -- CreateWindowEx?
  • ウインドウ表示 -- ShowWindow? UpdateWindow?
  • メッセージポンプ? メッセージループ
    ::TranslateMessage( &msg );
    ::DispatchMessage( &msg );
return msg.wParam;

WndProc?

LRESULT CALLBACK WndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )
LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
  • HWND hWnd hwnd
  • UINT msg message
  • WPARAM wParam
  • LPARAM lParam

スーパークラス呼び出し

参考リンク

http://if.dynsite.net/t-pot/program/4_windows/index.html

備考

アクセス--041012--041013--041021--041027--041030--041104--041106--041112--041124--041202--041205--041209--041216--041222--041224


索引