Limitations on Win32 API functions
Hi friends, completely new on the Win32 API programming. I've learned two functions and their use in C [WndProc() & WinMain()]. I believe that one develop in this environment if they need to write programs which will have windows, dialog boxes, buttons, i/o (mouse, keyboard, etc). My question is, can i use some of the API functions in my own development tools/environment? I'm busy learning learning to write programs using QUEST (a Computer Based Training tool) which has it's own frame windows where one can insert/draw objects (pictures/boxes/etc). My first task is to draw a line using a mouse, or a shape. So there only solution i have in my mind is to use MoveToEx(), and LineTo() functions to draw markers and use the WinAPI functions to handle mouse or window messages.
... Usually, one has to first define WndProc() function to handle messages and then use WinMain() to create a window. In my case, there's no need to create a new window in the WinMain() function, QUEST has a function GetFrameWindow() which return a handle (HWND). Can i use the WinMain() function but eliminate all the code which creates a new windows, perhaps leave the following lines...
Code:
ShowWindow(hWnd,iCmdShow);
UpdateWindow(hWnd);
while (GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}