김태현 WinAPI 5일차
1.FONT폰트 오브젝트를 사용해보자. 이전 오브젝트랑 사용법은 거의 동일하다. LRESULT CALLBACK WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { HDC hdc; PAINTSTRUCT ps; HFONT font; HFONT oldfont; char str[] = "폰트 Test 1234"; switch (iMessage) { case WM_PAINT: hdc = BeginPaint(hWnd, &ps); font = CreateFont(50, 0, 0, 0, 0, 0, 0, 0, HANGEUL_CHARSET, 0, 0, 0, 0, "궁서"); oldfont = (HFONT)SelectObject(hdc, font); Text..
2015. 11. 19.
2015.11.18_개인업무일지_[WIN32API #5]_이량경
✔ ================================================================ 6-5-가. CreateFont- 폰트를 만들기 위해서는 CreateFont 함수 사용- 이 함수가 리턴해 주는 핸들을 HFONT형의 변수에 대입. 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 fdwPit..
2015. 11. 19.
20151118_안향진_API_5
=6-5-가. CreateFont 1. HDC hdc; PAINTSTRUCT ps; HFONT font; HFONT oldfont; WCHAR str[]= L"폰트 Test 1234"; switch(iMessage) { case WM_PAINT: hdc=BeginPaint(hWnd, &ps); font=CreateFont(50,0,0,0,0,0,0,0,HANGEUL_CHARSET,0,0,0,0,"궁서"); oldfont=(HFONT)SelectObject(hdc,font); TextOut(hdc, 100,100,str,lstrlen(str)); SelectObject(hdc,oldfont); DeleteObject(font); EndPaint(hWnd, &ps); return 0; 2. typedef s..
2015. 11. 19.