Hi again, I remembered a way to copy files across network:
The TransmitFile function transmits file data over a connected socket handle. This function uses the operating system's cache manager to retrieve the file data, and provides high-performance file data transfer over sockets.
Note This function is a Microsoft-specific extension to the Windows Sockets specification.
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).