Home > Software engineering >  Double-click the mouse to redraw regions
Double-click the mouse to redraw regions

Time:10-05

MFC new view subclass, around the window divided into two, want to redraw immediately when the right mouse click area on the left side of the window area, how to call the new view subclass OnEraseBkgnd function

CodePudding user response:

You can transfer through CMainFrame framework class, through AfxGetMainWnd () - & gt; PostMessage/SendMessage () sends a message to the main frame window, the main frame window CSplitterWnd: : GetPane () of each split is to get the View

CodePudding user response:

MDI should send a message to a mainfram childfram
  • Related