mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Temp fix because LoadString isn't working properly.
svn path=/trunk/; revision=4250
This commit is contained in:
parent
e2ef77ef6c
commit
5d28d9704c
1 changed files with 8 additions and 6 deletions
|
@ -40,29 +40,31 @@
|
||||||
#define DEBUG(x)
|
#define DEBUG(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define SZ_APPNAME "ROSMine"
|
||||||
int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow )
|
int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow )
|
||||||
{
|
{
|
||||||
MSG msg;
|
MSG msg;
|
||||||
WNDCLASS wc;
|
WNDCLASS wc;
|
||||||
HWND hWnd;
|
HWND hWnd;
|
||||||
HACCEL haccel;
|
HACCEL haccel;
|
||||||
|
/*
|
||||||
char appname[9];
|
char appname[9];
|
||||||
|
LoadString doesn't appear to work properly under ROS
|
||||||
LoadString( hInst, IDS_APPNAME, appname, sizeof(appname));
|
LoadString( hInst, IDS_APPNAME, appname, sizeof(appname));
|
||||||
|
*/
|
||||||
wc.style = 0;
|
wc.style = 0;
|
||||||
wc.lpfnWndProc = MainProc;
|
wc.lpfnWndProc = MainProc;
|
||||||
wc.cbClsExtra = 0;
|
wc.cbClsExtra = 0;
|
||||||
wc.cbWndExtra = 0;
|
wc.cbWndExtra = 0;
|
||||||
wc.hInstance = hInst;
|
wc.hInstance = hInst;
|
||||||
wc.hIcon = LoadIcon( hInst, appname );
|
wc.hIcon = LoadIcon( hInst, SZ_APPNAME );
|
||||||
wc.hCursor = LoadCursor( NULL_HANDLE, IDI_APPLICATION );
|
wc.hCursor = LoadCursor( NULL_HANDLE, IDI_APPLICATION );
|
||||||
wc.hbrBackground = (HBRUSH) GetStockObject( BLACK_BRUSH );
|
wc.hbrBackground = (HBRUSH) GetStockObject( BLACK_BRUSH );
|
||||||
wc.lpszMenuName = "MENU_WINEMINE";
|
wc.lpszMenuName = "MENU_WINEMINE";
|
||||||
wc.lpszClassName = appname;
|
wc.lpszClassName = SZ_APPNAME;
|
||||||
|
|
||||||
if (!RegisterClass(&wc)) exit(1);
|
if (!RegisterClass(&wc)) exit(1);
|
||||||
hWnd = CreateWindow( appname, appname,
|
hWnd = CreateWindow( SZ_APPNAME, SZ_APPNAME,
|
||||||
WS_OVERLAPPEDWINDOW & ~WS_THICKFRAME & ~WS_MAXIMIZEBOX,
|
WS_OVERLAPPEDWINDOW & ~WS_THICKFRAME & ~WS_MAXIMIZEBOX,
|
||||||
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
||||||
NULL_HANDLE, NULL_HANDLE, hInst, NULL );
|
NULL_HANDLE, NULL_HANDLE, hInst, NULL );
|
||||||
|
@ -72,7 +74,7 @@ int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmd
|
||||||
ShowWindow( hWnd, cmdshow );
|
ShowWindow( hWnd, cmdshow );
|
||||||
UpdateWindow( hWnd );
|
UpdateWindow( hWnd );
|
||||||
|
|
||||||
haccel = LoadAccelerators( hInst, appname );
|
haccel = LoadAccelerators( hInst, SZ_APPNAME );
|
||||||
SetTimer( hWnd, ID_TIMER, 1000, NULL );
|
SetTimer( hWnd, ID_TIMER, 1000, NULL );
|
||||||
|
|
||||||
while( GetMessage(&msg, NULL_HANDLE, 0, 0) ) {
|
while( GetMessage(&msg, NULL_HANDLE, 0, 0) ) {
|
||||||
|
|
Loading…
Reference in a new issue