Win32 API
出自ProgWiki
目錄 |
技術文件
- Win32SDK(HLP檔)
控制項
設定輸入焦點
- HWND SetCapture(HWND hWnd);(設定滑鼠的輸入焦點)
- HWND SetFocus(HWND hWnd);(設定鍵盤的輸入焦點)
字型與文字
初始化字型
- HFONT CreateFont(int nHeight, int nWidth, int nEscapement, int nOrientation, int fnWeight, DWORD fdwItalic, DWORD fdwUnderline, DWORD fdwStrikeOut, DWORD fdwCharSet, DWORD fdwOutputPrecision, DWORD fdwClipPrecision, DWORD fdwQuality, DWORD fdwPitchAndFamily, LPCTSTR lpszFace);
- HFONT CreateFontIndirect(CONST LOGFONT* lplf);
畫文字
- int DrawText(HDC hDC, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat);
- int DrawTextEx(HDC hdc, LPTSTR lpchText, int cchText, LPRECT lprc, UINT dwDTFormat, LPDRAWTEXTPARAMS lpDTParams);
- BOOL TextOut(HDC hdc, int nXStart, int nYStart, LPCTSTR lpString, int cbString);