Hi, I have changed the normal dialog button to owner draw and used CBitmapButton. But when the focus is on the button and when we hit enter it is not taking the keyboard input. When we remove the owner draw, keyboard input works. Can someone let me know how to enable keyboard input when the button is Owner draw and use CBitmapButton to place image on it. Thanks in advance.. Ram..
User 3831761
Posts
-
CBitmapButton not taking keyboard inputs. -
Queue Mouse event till process completes.Thanks for the suggestion.. Any pointers for IProgressDialog example, would be of great help. As i am getting errors during compilation. Else have to follow the other method. Thanks a lot for the help.. Regards..
-
Queue Mouse event till process completes.Hello, I have an MFC dialog based application which does come sequence of tasks one after other. Each process takes few minutes to complete. I popup a dialog with cancel button on it with status of current task. If use selects cancel on the popup dialog. The process has to wait till the current task complete and then stop executing next task. Can someone tell me how to wait on process till it complete and then execute the mouse event. Thanks in advance.
-
Change background color of combo box's dropdown list.Thanks for the reply. I am not that expect in MFC to get it. Could you explain it with an example? Than you once again..
-
Change background color of combo box's dropdown list.Hello, How to change the background color of the dropdown list in combo box. I changed the back ground color of dialog box in OnCtlColor() method, this changed the color of all the items on the dialog. I could individual controls color but not able to change the dropdown list color of combo box. Below is the code snippet. if(pWnd->GetDlgCtrlID() == IDC_COMBO1) { HBRUSH g_bkcolor = CreateSolidBrush(RGB(255,255,255)); pDC->SetTextColor(RGB(0,0,0)); pDC->SetBkColor (RGB(255,255,255)); hbr = g_bkcolor; return hbr; } If someone knows how to change the color please let me know.. Thank You..
-
How to display SSL Certificate ?Hello, Is there a way to get the certificate of a seucre web page that is currently being displayed using CWebBrowser? Thank You..
-
how to get proxy setting of default webbrowser?hello, How can we get the proxy setting of a default web browser? and How to apply these setting on IE? Thanks...
-
CWebBrowser Control - Proxy settingThank you. Yes, it doesnt magically get setting from default browser. My question is, how to make Webbrowser to get setting from Firefox, if it is make default browser? Is this possible or not? Thanks..
-
CWebBrowser Control - Proxy settingHow to make WebBrowser to take setting from default webbrowser. For example it should take from Firefox if it is default browser. Thank you..
-
CWebBrowser Control - Proxy settingIf i uninstall IE it still is taking somesetting and running.
-
CWebBrowser Control - Proxy settingHello, I have following queries regarding CWebbrowser Control: 1. How does CWebBrowser control get its proxy setting? 2. How to make it get the proxy setting of default web browser - IE, Firefox or Chrome? Thank you, Best wishes...
-
How to show certificate (For HTTPS connections) in WebBrowser Control.Hello, How to show certificate in WebBrowser Control.. Thanks..
-
CWebBrowser - OnWindowClosingBrowser Method..Hello, I have not done anything currently. What should i do to get dialog closed when Windows.Close() method is called in script. What to do to close the dialog when YES is selected and return a different value to ExitInstance(). Thank you..
-
CWebBrowser - OnWindowClosingBrowser Method..I have a dialog based application with WebBrower control on it. The URL that i open in the webbrowser uses script having Windows.close() method. When the URL is closing it calls OnWindowClosing Browser Method, and later post a message saying "The webpage you're viewing is trying to close this window. Do you want to close this window? - YES/NO" My issue is on clicking YES the dialog is not closing. What should i do to close the dialog on selecting YES in above dialog. And secondly, i want the application to return 22 on clicking YES. How to may Dialog application return 22 on clicking YES above. Thank you..
-
Return value of a MFC Dialog Box Applicatin..Thank you.. I will try on these lines..
-
Return value of a MFC Dialog Box Applicatin..Requirement is to return a String? So have to find a soultion for it :( .. It is used by other process and that is already defined to take String as input..
-
Return value of a MFC Dialog Box Applicatin..Hello, I want to have a custom return value of a dialog box application. We can change the return value by overriding ExitInstance(). Is it possible to have a string as return value? If yes how to achieve this? Thank you..
-
MessageBox not getting FocusHi Naveen, This solution is working fine on regular OS (vista, XP) but it is failing on Windows PE environment. Any other to way get the focus? Thanks, Ram
-
How to generate Keyboard events ?Thank you. Using keybd_event how to generate Alt+Tab. I tried both of the below options but failed. 1 ------------ keybd_event( VK_MENU ,0x45,KEYEVENTF_EXTENDEDKEY | 0, 0 ); keybd_event( VK_TAB ,0x45,KEYEVENTF_EXTENDEDKEY | 0, 0 ); keybd_event( VK_TAB ,0x45,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,0); keybd_event( VK_MENU ,0x45,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,0); 2 ------------ keybd_event( VK_MENU | VK_TAB ,0x45,KEYEVENTF_EXTENDEDKEY | 0, 0 ); keybd_event( VK_MENU | VK_TAB ,0x45,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,0); Please let me know how to use for Alt+Tab combination to change the window.
-
How to generate Keyboard events ?Hi, How to generate Keyboard events. I want to generate Alt+Tab Event in middle of my application. How to generate Alt+Tab event in a dialog based application. Thanks in advance. With best wishes.