• Home
  • Raw
  • Download

Lines Matching refs:hwnd

47 void PrettyTitle(HWND hwnd, char *fileName)  in PrettyTitle()  argument
53 SetWindowTextA(hwnd, title); in PrettyTitle()
56 void InitParagraph(HWND hwnd, Context *context) in InitParagraph() argument
72 SetScrollInfo(hwnd, SB_VERT, &si, TRUE); in InitParagraph()
78 HWND hwnd; in WinMain() local
103 hwnd = CreateWindow(szAppName, NULL, in WinMain()
109 ShowWindow(hwnd, iCmdShow); in WinMain()
110 UpdateWindow(hwnd); in WinMain()
113 if (!TranslateAccelerator(hwnd, hAccel, &msg)) { in WinMain()
123 LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) in WndProc() argument
138 hdc = GetDC(hwnd); in WndProc()
145 ReleaseDC(hwnd, hdc); in WndProc()
155 SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR) context); in WndProc()
158 ReleaseDC(hwnd, hdc); in WndProc()
160 PrettyTitle(hwnd, "Sample.txt"); in WndProc()
166 context = (Context *) GetWindowLongPtr(hwnd, GWLP_USERDATA); in WndProc()
170 InitParagraph(hwnd, context); in WndProc()
181 GetScrollInfo(hwnd, SB_VERT, &si); in WndProc()
220 SetScrollInfo(hwnd, SB_VERT, &si, TRUE); in WndProc()
221 GetScrollInfo(hwnd, SB_VERT, &si); in WndProc()
223 context = (Context *) GetWindowLongPtr(hwnd, GWLP_USERDATA); in WndProc()
226 … ScrollWindow(hwnd, 0, context->paragraph->getLineHeight() * (vertPos - si.nPos), NULL, NULL); in WndProc()
227 UpdateWindow(hwnd); in WndProc()
239 hdc = BeginPaint(hwnd, &ps); in WndProc()
244 GetScrollInfo(hwnd, SB_VERT, &si); in WndProc()
248 context = (Context *) GetWindowLongPtr(hwnd, GWLP_USERDATA); in WndProc()
261 EndPaint(hwnd, &ps); in WndProc()
275 ofn.hwndOwner = hwnd; in WndProc()
298 hdc = GetDC(hwnd); in WndProc()
304 context = (Context *) GetWindowLongPtr(hwnd, GWLP_USERDATA); in WndProc()
311 InitParagraph(hwnd, context); in WndProc()
312 PrettyTitle(hwnd, szTitleName); in WndProc()
313 InvalidateRect(hwnd, NULL, TRUE); in WndProc()
325 SendMessage(hwnd, WM_CLOSE, 0, 0); in WndProc()
329 MessageBox(hwnd, TEXT("Windows Layout Sample 0.1\n") in WndProc()
341 context = (Context *) GetWindowLongPtr(hwnd, GWLP_USERDATA); in WndProc()
360 return DefWindowProc(hwnd, message, wParam, lParam); in WndProc()