mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 23:43:08 +00:00
[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:
parent
946a8d6317
commit
2fd1bc8f24
2 changed files with 13 additions and 9 deletions
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* TODO: AppBar */
|
||||||
#include "magnifier.h"
|
#include "magnifier.h"
|
||||||
|
|
||||||
const TCHAR szWindowClass[] = TEXT("MAGNIFIER");
|
const TCHAR szWindowClass[] = TEXT("MAGNIFIER");
|
||||||
|
@ -118,18 +119,21 @@ ATOM MyRegisterClass(HINSTANCE hInstance)
|
||||||
*/
|
*/
|
||||||
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
||||||
{
|
{
|
||||||
|
RECT rcWorkArea;
|
||||||
hInst = hInstance; // Store instance handle in our global variable
|
hInst = hInstance; // Store instance handle in our global variable
|
||||||
|
|
||||||
// Create the Window
|
SystemParametersInfo(SPI_GETWORKAREA, 0, &rcWorkArea, 0);
|
||||||
|
|
||||||
|
/* Create the Window */
|
||||||
hMainWnd = CreateWindowEx(
|
hMainWnd = CreateWindowEx(
|
||||||
WS_EX_TOPMOST,
|
WS_EX_TOPMOST | WS_EX_PALETTEWINDOW,
|
||||||
szWindowClass,
|
szWindowClass,
|
||||||
szTitle,
|
szTitle,
|
||||||
WS_OVERLAPPEDWINDOW,
|
WS_OVERLAPPEDWINDOW,
|
||||||
CW_USEDEFAULT,
|
CW_USEDEFAULT,
|
||||||
CW_USEDEFAULT,
|
CW_USEDEFAULT,
|
||||||
CW_USEDEFAULT,
|
(rcWorkArea.right - rcWorkArea.left) * 2 / 3,
|
||||||
CW_USEDEFAULT,
|
200,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
hInstance,
|
hInstance,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue