window.h

来自「一本非常好的关于VC方面的书」· C头文件 代码 · 共 37 行

H
37
字号
#ifndef __Window
#define __Window


#include <windows.h>
#include <commctrl.h>
#include <tchar.h>
#include <stdio.h>


#include "Struct.h"

inline void chSETDLGICONS(HWND hwnd, int idi) {
   SendMessage(hwnd, WM_SETICON, TRUE,  (LPARAM) 
      LoadIcon((HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE), 
         MAKEINTRESOURCE(idi)));
   SendMessage(hwnd, WM_SETICON, FALSE, (LPARAM) 
      LoadIcon((HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE), 
      MAKEINTRESOURCE(idi)));
}


#define _UNICODE

bool InitFonts(HFONT hFonts[]);
void SetWndPosition(HWND hWnd);
bool WINAPI GB2BIG(char *pszSrc);
void DeleteFonts(HFONT hFonts[]);
void InitVersionTable(HWND hwndVersionTable);
bool __stdcall GB2BIGW(unsigned short *szSrc);
void FormatText(char *szSrc, char *szDest, HWND hWnd, int iWordWidth);
void DrawBmptoRect(RECT rectDest, const HDC hdcDest, HBITMAP hbmpOrigin);
void DrawBmpButton(LPDRAWITEMSTRUCT lpDIS, HBITMAP hbmpUnselected, HBITMAP hbmpSelected);
void FormatTextW(unsigned short *szSrc, unsigned short *szDest, HWND hWnd, int iWordWidth);
inline void chSETDLGICONS(HWND hwnd, int idi);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?