I make a window in gui builder and put some text and button. I can control them with their ID in main routine but i want draw a circle in window and control it in main for omit or draw. I cannt find a command which get ID of window until can draw circle or any object in it. How can i draw object in gui window with command in main routine for draw and omit?
you have to add a 'case WM_PAINT' to the callback function of the dialog. This will allow you to draw into the WINDOW area. Please be aware that you have to take care about the whole window area then. If you set a back ground color for the window with WINDOW_SetBkColor() it has no effect any longer.
Try to add this to your callback function:
This can be done for any widget/window but will overwrite the default look of a widget. If you want to change the look of a widget you should use the skinning function or set a owner draw function (depends on the widget).
Thanks for your answer
I want to change it in main routin but this function draw circle for once when window creat and you cannt change it. Skinnig function only use for widget but i would draw object like circle or rectangle. Can i use multilayer support for it?
Thanks for regard