If you want to be able to create a window, menus, scrollbars, etc with a click and drag of a mouse then look to see if your C++ compiler came with a resource compiler. Then you have to write your code to use the controls, menu's etc as resources. Look up resources in your help file.
By "from scratch" do you mean without using the resource compiler and just calling the CreateWindow() API function from your program and specifing if you want BUTTON, EDIT, SCROLLBAR, etc styles? Remember that all controls are actually "windows".
Or do you mean, "How do I create a NEW resource file and place new resources such as BUTTONs, EDITs, SCROLLBARs, etc within it?
i mean creating button and the like from raw code. And how what i need to do to act apon their actions. You know like what kind of .h file is used what commands.
Just to add something: the PASCAL keyword has been replaced by WINAPI and CreateWindowEx() offers the Windows9X/2K style Window features. CreateWindow() is still included for compatability with Windows 3.X - but is also obsolete. As for your error - I don't use a Borland compiler, so I can't help you here. Rob Marriott
rob@career-connections.net
As CTCC1 noted, my example was win16. If your compiler can create a 16bit target, try that. I'm not familiar with Dev-C++ at all, but I did cut and paste the code back into my compiler and it ran fine with one little mod. (I had to unwrap one line to eliminate an unterminated string error due to TekTips formatting) The key function to look up in your compilers help file is CreateWindowEx() for WIN32 or CreateWindow() for win16.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.