Temp fix because LoadString isn't working properly.

svn path=/trunk/; revision=4250
This commit is contained in:
Richard Campbell 2003-03-06 19:33:18 +00:00
parent e2ef77ef6c
commit 5d28d9704c

View file

@ -40,29 +40,31 @@
#define DEBUG(x)
#endif
#define SZ_APPNAME "ROSMine"
int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow )
{
MSG msg;
WNDCLASS wc;
HWND hWnd;
HACCEL haccel;
/*
char appname[9];
LoadString doesn't appear to work properly under ROS
LoadString( hInst, IDS_APPNAME, appname, sizeof(appname));
*/
wc.style = 0;
wc.lpfnWndProc = MainProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInst;
wc.hIcon = LoadIcon( hInst, appname );
wc.hIcon = LoadIcon( hInst, SZ_APPNAME );
wc.hCursor = LoadCursor( NULL_HANDLE, IDI_APPLICATION );
wc.hbrBackground = (HBRUSH) GetStockObject( BLACK_BRUSH );
wc.lpszMenuName = "MENU_WINEMINE";
wc.lpszClassName = appname;
wc.lpszClassName = SZ_APPNAME;
if (!RegisterClass(&wc)) exit(1);
hWnd = CreateWindow( appname, appname,
hWnd = CreateWindow( SZ_APPNAME, SZ_APPNAME,
WS_OVERLAPPEDWINDOW & ~WS_THICKFRAME & ~WS_MAXIMIZEBOX,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
NULL_HANDLE, NULL_HANDLE, hInst, NULL );
@ -72,7 +74,7 @@ int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmd
ShowWindow( hWnd, cmdshow );
UpdateWindow( hWnd );
haccel = LoadAccelerators( hInst, appname );
haccel = LoadAccelerators( hInst, SZ_APPNAME );
SetTimer( hWnd, ID_TIMER, 1000, NULL );
while( GetMessage(&msg, NULL_HANDLE, 0, 0) ) {