2012-02-01から1ヶ月間の記事一覧

win32apiのメモ

#include <windows.h> #include <assert.h> #include <memory> #include <string> class Window { HWND hwnd_; public: Window() : hwnd_(0) { } void setHwnd(HWND hwnd) { hwnd_=hwnd; } void show() { ShowWindow(hwnd_, SW_SHOWNORMAL); UpdateWindow(hwnd_); } LRESULT WndProc(HWND hwnd, UI</string></memory></assert.h></windows.h>…