Home > Software engineering >  The Internet age, the MFC technology seems to be declining, seems to have is gone...
The Internet age, the MFC technology seems to be declining, seems to have is gone...

Time:01-12

S Web is popular, MFC seems to have not, is there any self-help measures? Let it return to view might be insane...

CodePudding user response:

Let the MFC back into one location, it should be a very interesting topic, in fact, of the MFC technology background, is extremely profound, we look at a piece of code:
//Crash reports triggered by IPC messages for this frame should be associated
//with its URL.
ScopedActiveURL scoped_active_url (this);

If (delegate_ - & gt; OnMessageReceived (this, MSG))
return true;

RenderFrameProxyHost * proxy=
Frame_tree_node_ - & gt; Render_manager () - & gt; GetProxyToParent ();
If (proxy & amp; & The proxy - & gt; Cross_process_frame_connector () & amp; &
The proxy - & gt; Cross_process_frame_connector () - & gt; OnMessageReceived (MSG))
return true;

Bool handled=true;
IPC_BEGIN_MESSAGE_MAP (RenderFrameHostImpl, MSG)
IPC_MESSAGE_HANDLER FrameHostMsg_Detach, OnDetach ()
IPC_MESSAGE_HANDLER (FrameHostMsg_UpdateState OnUpdateState)
IPC_MESSAGE_HANDLER (FrameHostMsg_OpenURL OnOpenURL)
IPC_MESSAGE_HANDLER (FrameHostMsg_Unload_ACK OnUnloadACK)
IPC_MESSAGE_HANDLER (FrameHostMsg_ContextMenu OnContextMenu)
IPC_MESSAGE_HANDLER (FrameHostMsg_VisualStateResponse OnVisualStateResponse)
IPC_MESSAGE_HANDLER (FrameHostMsg_DidChangeOpener OnDidChangeOpener)
IPC_MESSAGE_HANDLER (FrameHostMsg_DidChangeFramePolicy,
OnDidChangeFramePolicy)
IPC_MESSAGE_HANDLER (FrameHostMsg_DidChangeFrameOwnerProperties,
OnDidChangeFrameOwnerProperties)
IPC_MESSAGE_HANDLER (FrameHostMsg_UpdateTitle OnUpdateTitle)
IPC_MESSAGE_HANDLER (AccessibilityHostMsg_EventBundle OnAccessibilityEvents)
IPC_MESSAGE_HANDLER (AccessibilityHostMsg_LocationChanges,
OnAccessibilityLocationChanges)
IPC_MESSAGE_HANDLER (AccessibilityHostMsg_ChildFrameHitTestResult,
OnAccessibilityChildFrameHitTestResult)
IPC_MESSAGE_HANDLER (AccessibilityHostMsg_SnapshotResponse,
OnAccessibilitySnapshotResponse)
IPC_MESSAGE_HANDLER (FrameHostMsg_DidStopLoading OnDidStopLoading)
IPC_MESSAGE_HANDLER (FrameHostMsg_SelectionChanged OnSelectionChanged)
IPC_MESSAGE_HANDLER (FrameHostMsg_FocusedNodeChanged OnFocusedNodeChanged)
IPC_MESSAGE_HANDLER (FrameHostMsg_UpdateUserActivationState,
OnUpdateUserActivationState)
IPC_MESSAGE_HANDLER (FrameHostMsg_FrameDidCallFocus OnFrameDidCallFocus)
IPC_MESSAGE_HANDLER (FrameHostMsg_DownloadUrl OnDownloadUrl)
# if BUILDFLAG (USE_EXTERNAL_POPUP_MENU)
IPC_MESSAGE_HANDLER (FrameHostMsg_ShowPopup OnShowPopup)
IPC_MESSAGE_HANDLER (FrameHostMsg_HidePopup OnHidePopup)
# endif
IPC_MESSAGE_HANDLER (FrameHostMsg_RequestOverlayRoutingToken,
OnRequestOverlayRoutingToken)
//the begin the Add by TangramTeam
IPC_MESSAGE_HANDLER (TangramFrameHostMsg_Message OnCosmosMessage)
IPC_MESSAGE_HANDLER (TangramFrameHostMsg_Message2 OnCosmosMessage2)
IPC_MESSAGE_HANDLER (TangramHostIPCMsg OnCosmosHostIPCMsg)
//end Add by TangramTeam
IPC_END_MESSAGE_MAP ()

Familiar with MFC development warrior, see some feel kindness?
The above code from the Chromium project, in fact, many of these can be found in the MFC code structure, to restore the MFC should some runescape position, should be a very valuable thing...

CodePudding user response:

Compared with the Web technology, MFC technical framework in the market is becoming more and more ragged, is there a strategy change this weakness?
Let the MFC technology Web in composition to adapt to the development of the Internet, may be our chances of MFC developer today:

CodePudding user response:

  • Related