Are you sure you want to draw directly on the dialog ? In general, it doesn't make a lot of sense. A better approach would be to create a custom control and delegate the work to it.
What are you trying to achieve exactly ?
Ok but this doesn't answer my question. Do you really need to draw on the dialog itself rather than using a custom control ? Here[^] is an article about creating custom controls. It is much cleaner than drawing directly on the dialog.
Hello to all,
I have created one MDI application and in this application I want to remove maximize button of main application window with its box also,means I want to keep only minimize and close button there.I wrote following code in CMainFrame::PreCreateWindow() function,
if( !CMDIFrameWnd::PreCreateWindow(cs) )
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
But the problem is that it is not removing maximize button completly,it is only disabling maximize button there, though now I can not operate maximize button but I can see maximize button and its box there which is disabled.I want to remove that box and maximize button completly,can anyone help me how to do it?
I made a dll that exports several functions, 2 of them are:
My console application calls above two functions. Now, in my console application, I want to be able to attach child dialogs to my CFrameWnd. How can I do that?
The idea is to have my dll creating a CFrameWnd and running with a default behaviour, but if the user wants to customize the CFrameWnd, he should be able to add child dialogs created by himself in the console application.
I can create dialogs in the console application, but I cannot specify the parent window (If I use the CWnd object returned by the dllCallCreateWindow, the application crashes).
For your benefit, I've seen you've been asking this for a while.
But there are not so much of Java experts here, so I suggest that you try out a good Java discussion forum on the Internet (CP has a Java board, but is not very much active yet). They will probably suggest you a way out on how to access a Java servelet from C++.
It is a crappy thing, but it's life -^Carlo Pallini
Last Visit: 31-Dec-99 19:00 Last Update: 3-Dec-23 20:05