Mercurial > dwindows
comparison os2/dw.c @ 1690:0f4bbb78f149
Ugg this stupid editor keeps adding tabs!
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 30 Apr 2012 17:16:19 +0000 |
parents | 3fb7002e4de6 |
children | 0bf394615372 |
comparison
equal
deleted
inserted
replaced
1689:3fb7002e4de6 | 1690:0f4bbb78f149 |
---|---|
4056 _getcwd(_dw_exec_dir, MAX_PATH); | 4056 _getcwd(_dw_exec_dir, MAX_PATH); |
4057 | 4057 |
4058 if(newthread) | 4058 if(newthread) |
4059 { | 4059 { |
4060 dwhab = WinInitialize(0); | 4060 dwhab = WinInitialize(0); |
4061 dwhmq = WinCreateMsgQueue(dwhab, 0); | 4061 dwhmq = WinCreateMsgQueue(dwhab, 0); |
4062 #ifdef UNICODE | 4062 #ifdef UNICODE |
4063 /* Set the codepage to 1208 (UTF-8) */ | 4063 /* Set the codepage to 1208 (UTF-8) */ |
4064 WinSetCp(dwhmq, 1208); | 4064 WinSetCp(dwhmq, 1208); |
4065 #endif | 4065 #endif |
4066 } | 4066 } |
4067 | 4067 |
4068 rc = WinRegisterClass(dwhab, (PSZ)ClassName, _wndproc, CS_SIZEREDRAW | CS_CLIPCHILDREN, 32); | 4068 rc = WinRegisterClass(dwhab, (PSZ)ClassName, _wndproc, CS_SIZEREDRAW | CS_CLIPCHILDREN, 32); |
4069 rc = WinRegisterClass(dwhab, (PSZ)SplitbarClassName, _splitwndproc, 0L, 32); | 4069 rc = WinRegisterClass(dwhab, (PSZ)SplitbarClassName, _splitwndproc, 0L, 32); |
4620 else | 4620 else |
4621 { | 4621 { |
4622 strcpy(buf, currfont); | 4622 strcpy(buf, currfont); |
4623 strcpy(fd.fAttrs.szFacename, currfont); | 4623 strcpy(fd.fAttrs.szFacename, currfont); |
4624 } | 4624 } |
4625 } | 4625 } |
4626 #ifdef UNICODE | 4626 #ifdef UNICODE |
4627 fd.fAttrs.usCodePage = 1208; | 4627 fd.fAttrs.usCodePage = 1208; |
4628 #endif | 4628 #endif |
4629 fd.fAttrs.usRecordLength = sizeof(FATTRS); | 4629 fd.fAttrs.usRecordLength = sizeof(FATTRS); |
4630 | 4630 |
4631 /* Fill in the font dialog struct */ | 4631 /* Fill in the font dialog struct */ |
4632 fd.cbSize = sizeof(fd); | 4632 fd.cbSize = sizeof(fd); |