98{
100
102
104 {
105 switch(uMsg)
106 {
108 Info->MainWndInfo->CurrentFontWnd =
Info;
111 break;
112
116
118
120
121 return 0;
122
125
126 if(
Info->FirstEditGlyphWnd)
127 {
129
133
134 return 0;
135 }
136
137
138 if(
Info->OpenInfo->bModified)
139 {
143
146
149
150 switch(nMsgBoxResult)
151 {
154 break;
155
157
158 return 0;
159
160
161 }
162 }
163
164
165
166 Info->MainWndInfo->CurrentFontWnd =
NULL;
169
171 {
172
173
175 return 1;
176 }
177 break;
178
180
181 if(
Info->PrevFontWnd)
182 Info->PrevFontWnd->NextFontWnd =
Info->NextFontWnd;
183 else
184 Info->MainWndInfo->FirstFontWnd =
Info->NextFontWnd;
185
186 if(
Info->NextFontWnd)
187 Info->NextFontWnd->PrevFontWnd =
Info->PrevFontWnd;
188 else
189 Info->MainWndInfo->LastFontWnd =
Info->PrevFontWnd;
190
191
194
195 if(
Info->OpenInfo->pszFileName)
197
200
202 return 0;
203
205
207 break;
208
210 {
215
216
221
223 {
225
226
233 }
234 else
235 {
237
238
244 0,
245 0,
247 }
248
250 {
252
253
260 }
261 else
262 {
264
269 0,
270 0,
272 }
273
274
275 break;
276 }
277
280 {
284
287 else
289
293
295
297 {
298
301 break;
302
303
306 break;
307
308
311 break;
312
313
316 break;
317
318
321 break;
322
323
326 break;
327
330 break;
331 }
332
336
337 if(si.
nPos != nOrgPos)
338 {
339
342
347
350 else
352 }
353
354 return 0;
355 }
356 }
357 }
358
360}
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
VOID CreateFontBoxesWindow(IN PFONT_WND_INFO FontWndInfo)
VOID SetPasteButtonState(IN PMAIN_WND_INFO Info)
VOID DoFileSave(IN PMAIN_WND_INFO Info, IN BOOL bSaveAs)
VOID SetToolbarFileButtonState(IN PMAIN_WND_INFO Info, BOOL bEnabled)
#define FONT_BOXES_WND_HEIGHT
#define FONT_BOXES_WND_WIDTH
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
#define GetWindowLongPtrW
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
LRESULT WINAPI DefMDIChildProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
HWND WINAPI SetFocus(_In_opt_ HWND)
#define MB_ICONEXCLAMATION
int WINAPI SetScrollInfo(_In_ HWND, _In_ int, _In_ LPCSCROLLINFO, _In_ BOOL)
BOOL WINAPI ShowScrollBar(_In_ HWND, _In_ int, _In_ BOOL)
#define SetWindowLongPtrW
BOOL WINAPI GetScrollInfo(_In_ HWND, _In_ int, _Inout_ LPSCROLLINFO)
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)