Hi Use the following code void CTestDlg::OnLongProcess() { CWaitCursor wait; . . . Sleep(4000); //Some Long Process . . . . wait.Restore(); //Restore the Wait cursor //Continue process } This may help you Sujan
Sujan Christo
Posts
-
WaitCursor and form disable -
Printout Bmp imageHi, One of the procedure which you can follow is load the image into a dc and print the contents of the DC. Have a look @ the following link, although it is related to OpenGl, i think that you'll get little hints from it http://www.codeproject.com/opengl/opengl_printing.asp[^] Sujan
-
customizing MS Word MenubarHi, For custom menu handling you have to use the concept of C0M Addin. Please have a look @ the following links. This may help you http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2kta/html/comaddins.asp[^] http://support.microsoft.com/?kbid=230689[^] http://www.cheztabor.com/AtlAddIn/[^] Sujan
-
disabling Excel toolbars from within VCHi, You have to user Com add-in for doing these type of manipulations. Have a look @ the article below, http://support.microsoft.com/kb/q199691/[^] this may help you Sujan
-
Getting the HWND from FilenameHi, You can use the SPY++ Utility which comes with Visual Studio Tools Sujan
-
DirectShow : Linker ErrorHi, You have to link the needed libs. Think that you have to add strmiids.lib explicity in the linker options Hope that this will help you Sujan
-
Color Palette ToolbarHi, I don't know how the color palette of corel looks like, but have a look @ the following articles, These may help you to start developing your own Palette http://www.codeproject.com/miscctrl/gradient.asp[^] http://www.codeproject.com/docking/prod_profuis.asp[^] http://www.codeproject.com/miscctrl/colour_picker.asp[^] Best of Luck Sujan
-
KeyWord and Reserved WordHi, Have a look @ the following links, it may help you http://en.wikipedia.org/wiki/Keyword[^] http://www.atis.org/tg2k/_reserved_word.html[^] Sujan
-
help!!!!!i have got an error.....Hi, Seems that you have deleted some of the needed headers/endif statement.Have a look @ the msdn with the error code C1010 Sujan
-
Rename VC++ project nameHi, Think it is difficult ! Sujan
-
Timer in a non-CWnd classHi, Within the Func() function use SetTimer as SetTimer( NULL, 1, 500, (TIMERPROC)TimerProc); This will work SUjan
-
VC++ .net and serial communicationHi, What error message r u getting. I had done serial comm in VC++. Have a look at the following link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn_serial.asp[^] it will surely help you Sujan
-
Program wont write to fileHi, I took tried ur code. Seems that fstream is havin some prob. I tried with a different stream for writing after closing the current stream and it worked !. ie added the following code after stream.close(); fstream stream2("database.txt", ios::in | ios::out|ios::app ); stream2 << current << endl; stream2.close(); This means that the first stream is having some problem Sujan
-
How to show the hint text in a dialog?Hi, Use the following code. It will work In Dialog's header add CToolTipCtrl tooltip; in Dialog's on initdialog add tooltip.Create(this,TTS_ALWAYSTIP); CWnd *pWnd = GetDlgItem(IDC_BUTTON_BC1); tooltip.AddTool(pWnd,"Hello Testing ",NULL,NULL); Add the PreTranslateMessage for the dialog and add the following code tooltip.RelayEvent(pMsg); Sujan
-
UI StyleHi, Have a look @ this link http://web-bloopers.com/gui-bloopers/[^]sometimes this may help you Sujan
-
Please Help:: CEditHi, In the styles page of Edit Ctrl enable multiline and use "\r\n" Sujan
-
IntegrateHi, Using SDK is quiet straight forward.Create a MFC Application, add the necessary libraries to the library path and use the SDK, code. What sort of SDK are you using ?. What is the problem which you are facing ?. Sujan
-
What's wrong with this????Hi, myThreadFunc function must have 2 be a global function. So you are using a worker thread.Have a look @ this link this will surely help you http://www.flounder.com/workerthreads.htm[^] Sujan
-
Resolution independent programming?Hi, i think that you have to include the resizing code Have a look @ msdn related to CWnd::OnSize it does have an example Hope that this might help you Sujan
-
close applicationsHi, Get the handle of the running application using FindWindow function and send the WM_CLOSE message using SendMessage like SendMessage(hWnd,WM_CLOSE,0,0); Hope this will help you Sujan