Hello to all,
In my project I am uploading some data on to the internet.After data uploading gets completed without any problem then one modal dialog box appears showing the text "Uploaded Successfully" (I am invoking that dialog box through "AfxMessageBox"). Now I want to play one "avi" file on to that dialog box or I want to show some moving image on to that dialog box. So anyone knows how to do it? anyone knows how to play "avi" file on modal dialog box? its really urgent so plz help me out.
I want to Communicate with Ms Access using MFC Application , I don't Know Ms Access...
But Am Working in SQL with MFC
Please Help Me How to Insert ,Delete ,Update in Ms access...give some code plz thank u... Regard'sMathy's
How can send a message to a running application from another running application.
I tried with FindWindow(), to find the window and PostMessage() to it.
But somtimes FindWindow() is not able to figure out the desired window.
I think I have to use the registred class name instead of Window Name...
So please tell me how to do that..
My app is SDI(VS 2003). And window registration code is
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)<br />
if( !CFrameWnd::PreCreateWindow(cs) )<br />
return FALSE;<br />
// TODO: Modify the Window class or styles here by modifying<br />// the CREATESTRUCT cs<br />
cs.dwExStyle &= ~WS_EX_CLIENTEDGE;<br />
cs.lpszClass = AfxRegisterWndClass(NULL,NULL,NULL,AfxGetApp()->LoadIcon(IDR_MAINFRAME));<br />
cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;<br />
return TRUE;<br />
But the AfxRegisterWndClass() return a window name that is like afx:0000:50000......
Is there any way to register the window with user defind name so that I can use this name with FindWindow().
I'm working on a standard Windows SDI application (with menu, toolbar etc.) written using the API ie. no MFC. Currently it has a quirk (though one shared by apps such as Visual Studio and UEStudio). Namely, if I run through the following steps...
1. Open a modal dialog box
2. Then activate another open application by clicking on its icon in the taskbar
3. Click anywhere in that app's window
4. Click on the taskbar icon for my application
... the modal dialog box appears but over the against the background of the other application. It's only when I close the dialog box that my application window re-appears. Any ideas?
I can't say that I see that behaviour (I followed your repro steps with Visual Studio and a couple of other apps). I would tend to say that if VS is acting like that, then your system's setup isn't quite right.
Also - if your app is acting like VS, it can't be doing too much wrong?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
I am trying to create a help file for my program. I wrote a pdf with pictures and text describing how my program works and I wanted to put a button called "help" on my dialog that would open the pdf. But doing this seems quite hard, could someone help me do this? I have tried just opening a blank dialog and adding Static Text but quite frankly I think that looks like crap. Maybe I am approaching the problem from the wrong angle. Is there some easier way to do this? Any help would be appreciated.