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);
Printable View
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);
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.
Code:HWND bWnd;
bWnd = CreateWindowEx(NULL, "Button1", "Button1", WS_CHILD, 0, 0, 64, 64, hWnd, NULL, hInst, NULL);
ShowWindow(bWnd, 1);
UpdateWindow(hWnd);
Vlatko - I've emailed you an example project.
Thanks for the help.