Vlatko
Sep 17th, 2000, 10:51 AM
I am making an app without using MFC (a simple win32 application);I don't have a recources tab and i can not add a button or edit control. How can i add those ,and declare variables for them(where to declare them);
parksie
Sep 17th, 2000, 10:55 AM
Go File->New and choose "Resource Script". Make sure that you add it to the current project. Close the child window that appears, then click the new Resource tab.
Use the CreateWindowEx() function to create windows.
HWND bWnd;
bWnd = CreateWindowEx(NULL, "Button1", "Button1", WS_CHILD, 0, 0, 64, 64, hWnd, NULL, hInst, NULL);
ShowWindow(bWnd, 1);
UpdateWindow(hWnd);
parksie
Sep 17th, 2000, 11:21 AM
Vlatko - I've emailed you an example project.