Thanks.I will try it.
radhika28
Posts
-
handle to a child window -
handle to a child windowya that is true but,I had another problem i.e when i opened a dilaog from one of the views and opened a dilaog from the tray menu option with out closing the first one.So,i will have two modal dilaogs opened.Now when i close one window,i am able to access the main window even though one modal dialog is opened,which is a odd behavior.So,i want to get the handle of the child window,which remained when i close one of the window's and disable the main window untill the child window is closed.Is it correct or there is any other option. Thanks
-
handle to a child windowAll are Modal dialogs
-
handle to a child windowHi, Mine is a SDI application with different form views.I have button controls in the form views.When clicked on these buttons some dilaogs will open.How to get the handle to the child window which is opened when clicked on buttons. Thanks.
-
Dialog WindowThanks NS17.The problem was that i have given same ID for the two menu options in two menus.It is working fine. Thanks -- modified at 4:47 Friday 10th August, 2007
-
Dialog WindowThanks for ur reply.But it doesn't work.The dialog is displaying again and again when i click on the settings option in the menu again and again . Thanks.
-
Dialog Windowvoid CMainFrame::OnSettings() { // TODO: Add your command handler code here CSettings dlg; if(!(dlg.IsWindowVisible())) { dlg.DoModal(); } } When i right click on my application's tray icon a tray menu will display.My tray menu have one of the option called "Settings".When click on "settings" the settings dialog( class name:CSettings) will display.But my problem is when i click on the settings n times,then n number Settings dilaog is opening.What i required is,if dilaog is already opened it should not open again.How can i do this. Thanks.
-
Dialog WindowHi, I have an option in my application tray menu to display a dialog.When i have used the IsWindowVisible also that particular dalog is displaying as many times the option in the tray menu is selected.If the dialog is already opened it should not open again.I have used the following code.But it doesn't work.How can i go further. CDialog dlg; if(dlg.IsWindowVisible()) { dlg.ShowWindow(SW_HIDE); } Thanks
-
Dialog WindowHi, How to find wheather a dilaog window is opened or not programatically. Thanks
-
checking the treecontrolHow can i check wheather a paticlar item exists in a tree control or not.(scan through rootitems only).
-
scrolling window from left to rightMy application window contains many controls.so it became too large.so i want to hide half part of the window initially.Now when i click button inside my dialog the window shows the hidden half part of the window.How can i scroll the window from left to right with using the button because i don't want scrollbars. Thanks, Radhika.
-
run an exeya.My problem is when i used this function to run an exe from an application running in usb drive.Now when i closed the application in the usb drive,the usb is not safe removed untill i close the exe which i runned using shellexecute function.How can i resolve this?
-
run an exehi thanks for your reply.I have one question is this function run without the control of the parent application(from which we run this). Thanks
-
run an exeI want to run an application exe from another application without control of the parent application.To be clear i am running an application from pen drive.That application in the pen drive runs another application from it.now even when i closed the parent application and i am not able to safe remove the usb dtive untill i closed the child application.Any suggestions on this?
-
CString to TCHARI got it.Thanks both of you.
-
CString to TCHARNo,i have to convert a Cstring variable to TCHAR variable only.No pointer for TCHAR.
-
CString to TCHARHow can i convert the above? Thanks
-
Safe Remove ProblemHi, I want to safe remove an usb drive programatically .So for that i have followed "Uwe_Sieber" article "How to prepare an USB drive for save removal" in code project .I am able to do it by running the application from another drive.Now i want to safe remove usb drive by running the application from the same drive as per our project requirement.When i tried this the usb drive is not removed.How can i achieve safe removal of usb drive by running the application from the same drive. Thanks.
-
USB DriveI want to safely remove the usb drive programatically.How can i do this. Thanks.
-
copy to clipboardmy application consists of a treecontrol in which i have displayed system files and folders in a tree control similar to the left hand side of Windows Explorer. i am able to copy the folder from the treecontrol and paste it on the explorer where ever we need.Also copy and paste operations are occuring with in the tree control.Now i have added unicode support to my application.The copy to clipboard function is failing.when i copy the folder from explorer i am able to paste it in the treecontrol.But when i tried viceversa i am getting an error message like "the file name you specified is not valid or too long.specify a different file name".how can i make the folder copy from the treecontrol.The code i used is , CDropFiles DropFiles; if(!PrepareFileBuff(DropFiles)) { return; } if (OpenClipboard()) { BeginWaitCursor(); ::EmptyClipboard(); HGLOBAL hMem = ::GlobalAlloc(GMEM_ZEROINIT|GMEM_MOVEABLE|GMEM_DDESHARE, DropFiles.GetBuffSize()); memcpy( (LPTSTR)::GlobalLock(hMem), DropFiles.GetBuffer() ,DropFiles.GetBuffSize() ); ::SetClipboardData (CF_HDROP, hMem ); ::CloseClipboard(); EndWaitCursor(); }