[MAGNIFY]

* Reduce palette window size.
* Fix some Japanese text.
* Brought to you by Hirofumi Katayama.
CORE-6802 #resolve #comment Committed in r57870. Thanks ;)

svn path=/trunk/; revision=57870
This commit is contained in:
Amine Khaldi 2012-12-11 10:15:46 +00:00
parent 946a8d6317
commit 2fd1bc8f24
2 changed files with 13 additions and 9 deletions

View file

@ -7,6 +7,7 @@
*
*/
/* TODO: AppBar */
#include "magnifier.h"
const TCHAR szWindowClass[] = TEXT("MAGNIFIER");
@ -118,18 +119,21 @@ ATOM MyRegisterClass(HINSTANCE hInstance)
*/
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
RECT rcWorkArea;
hInst = hInstance; // Store instance handle in our global variable
// Create the Window
SystemParametersInfo(SPI_GETWORKAREA, 0, &rcWorkArea, 0);
/* Create the Window */
hMainWnd = CreateWindowEx(
WS_EX_TOPMOST,
WS_EX_TOPMOST | WS_EX_PALETTEWINDOW,
szWindowClass,
szTitle,
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
(rcWorkArea.right - rcWorkArea.left) * 2 / 3,
200,
NULL,
NULL,
hInstance,