Mercurial > dwindows
comparison win/dw.c @ 1618:428148fd0976
Switch to UNICODE builds by default on Windows.
Need to include tchar.h not wchar.h and missed a required TEXT() place.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 27 Mar 2012 14:46:04 +0000 |
parents | f8d1da63fb77 |
children | 32b5fba0b00a |
comparison
equal
deleted
inserted
replaced
1617:f8d1da63fb77 | 1618:428148fd0976 |
---|---|
12 #include <windowsx.h> | 12 #include <windowsx.h> |
13 #include <commctrl.h> | 13 #include <commctrl.h> |
14 #include <shlwapi.h> | 14 #include <shlwapi.h> |
15 #include <shlobj.h> | 15 #include <shlobj.h> |
16 #include <userenv.h> | 16 #include <userenv.h> |
17 #include <wchar.h> | 17 #include <tchar.h> |
18 #include <stdlib.h> | 18 #include <stdlib.h> |
19 #include <string.h> | 19 #include <string.h> |
20 #include <stdio.h> | 20 #include <stdio.h> |
21 #include <process.h> | 21 #include <process.h> |
22 #include <malloc.h> | 22 #include <malloc.h> |
6936 | 6936 |
6937 if(_tcsnicmp(tmpbuf, FRAMECLASSNAME, _tcslen(FRAMECLASSNAME)+1)==0) | 6937 if(_tcsnicmp(tmpbuf, FRAMECLASSNAME, _tcslen(FRAMECLASSNAME)+1)==0) |
6938 tmpitem[index].type = TYPEBOX; | 6938 tmpitem[index].type = TYPEBOX; |
6939 else | 6939 else |
6940 { | 6940 { |
6941 if(_tcsnicmp(tmpbuf, "SysMonthCal32", 13)==0) | 6941 if(_tcsnicmp(tmpbuf, TEXT("SysMonthCal32"), 13)==0) |
6942 { | 6942 { |
6943 RECT rc; | 6943 RECT rc; |
6944 MonthCal_GetMinReqRect(item, &rc); | 6944 MonthCal_GetMinReqRect(item, &rc); |
6945 width = 1 + rc.right - rc.left; | 6945 width = 1 + rc.right - rc.left; |
6946 height = 1 + rc.bottom - rc.top; | 6946 height = 1 + rc.bottom - rc.top; |