Summary: The menu items are disabled even though menu handlers were added with Class Wizard when you create an OLE Control and then use the Pop-up Menu component in the Component Gallery to add a context menu to the COleControl derived class. The problem occurs after you modify the context menu, and then add handlers for the menu items, build the Control, place it in Tstcon32.exe, and bring up the context menu.
Solution: Fixing FIX: Pop-Up Menu Items Disabled for an OLE Control errors is a really difficult task for most computer users. In order to fix your errors and speed up PC, it is recommended that your download the 'FIX: Pop-Up Menu Items Disabled for an OLE Control Repair Tool'. This is definitely your ideal tool to solve FIX: Pop-Up Menu Items Disabled for an OLE Control problem in the shortest time.
Download FIX: Pop-Up Menu Items Disabled for an OLE Control Problems Fixer Now
In order to repair FIX: Pop-Up Menu Items Disabled for an OLE Control problem, use the SmartPCFixer software program. This optimization tool is already proven to locate, identify, and fix FIX: Pop-Up Menu Items Disabled for an OLE Control errors. Your computer should run faster and smoother after using this software.
Manual Solutions
When you add a context menu to an OLE control, you need to make the COleControl derived class the parent of the context menu. The Pop-up Menu Component creates the following code within the CWnd derived class. If the pop-up menu is being added to a COleControl-derived class, you need to delete the following lines of code: while (pWndPopupOwner->GetStyle() & WS_CHILD) pWndPopupOwner = pWndPopupOwner->GetParent();Code Created by Pop-up Menu Component
void CSPLITCtrl::OnContextMenu(CWnd*, CPoint point) { // CG: This function was added by the Pop-up Menu component CMenu menu; VERIFY(menu.LoadMenu(CG_IDR_POPUP_SPLITCTRL)); CMenu* pPopup = menu.GetSubMenu(0); ASSERT(pPopup != NULL); CWnd* pWndPopupOwner = this; while (pWndPopupOwner->GetStyle() & WS_CHILD) pWndPopupOwner = pWndPopupOwner->GetParent(); pPopup->;TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, pWndPopupOwner);By removing the two lines of code, you are leaving the COleControl-derived class as the parent of the menu. As a result, the control receives the WM_COMMAND messages sent by the pop-up menu, so the normal ON_COMMAND functionality added by Class Wizard worked as designed.
What Else Does SmartPCFixer Offer You?
SmartPCFixer™ is not only able to troubleshoot FIX: Pop-Up Menu Items Disabled for an OLE Control error, but also help identify and fix Windows' invalid registry entries. By running Scan & Cleaner as part of scheduled maintenance, it will keep your PC from freezing or frequent crashes . Using it will reduce the probability of you getting a "blue screen", program not responding or lock up.
SmartPCFixer provides you with Registry Backup, System Backup, Favorites Backup and Folder Backup. In addition, the new built-in function of Restore Point enables you to create a system store point so you can recover your system to a previous state if you do not like the changes you have made. This ensures the safety of your system when you run the registry repair process.
Related: Difference Of WorkSpace In VB4 And SetDefaultWorkSpace In VB3,Deleted Files Remain In The Recycle Bin After Installing Windows Millennium,Description Of Group Policy Preference Migration Tool (GPPMIG),Distribution Manager Does Not Decompress Files With Long File Names In Systems Management Server 2003,Error Message: System Error 997 Has Occurred
Read More: ,microsoft controller driver,block pop up chrome,computer running slow,rpc server unavailable 0x800706ba,error download
0 comments:
Post a Comment