Click here to Skip to main content
15,887,175 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: HttpOpenRequest failed in IE9 Pin
Garth J Lancaster22-Sep-10 23:59
professionalGarth J Lancaster22-Sep-10 23:59 
GeneralRe: HttpOpenRequest failed in IE9 Pin
am 200923-Sep-10 17:44
am 200923-Sep-10 17:44 
GeneralRe: HttpOpenRequest failed in IE9 Pin
Garth J Lancaster23-Sep-10 17:46
professionalGarth J Lancaster23-Sep-10 17:46 
GeneralRe: HttpOpenRequest failed in IE9 Pin
am 200923-Sep-10 18:45
am 200923-Sep-10 18:45 
QuestionAny news for native c++ delegates? Pin
federico.strati22-Sep-10 4:52
federico.strati22-Sep-10 4:52 
AnswerRe: Any news for native c++ delegates? Pin
«_Superman_»22-Sep-10 20:21
professional«_Superman_»22-Sep-10 20:21 
GeneralRe: Any news for native c++ delegates? Pin
federico.strati22-Sep-10 22:50
federico.strati22-Sep-10 22:50 
QuestionResizing a window Pin
Craig Longman21-Sep-10 11:04
Craig Longman21-Sep-10 11:04 
I'm writing a plug-in for an NLE, and I wish to forcibly resize my window to fill the area that is available. The PlugInPP class is defined as such:

class ATL_NO_VTABLE CPluginPP :
  public CComObjectRootEx<CComMultiThreadModel>,
  public CComCoClass<CPluginPP, &CLSID_PluginPP>,
  public IPropertyPageImpl<CPluginPP>,
  public CDialogImpl<CPluginPP>


In order to get the sizing messages for the parent window, I have sub-classed it, and when I see a WM_SIZE message, I do the following:

::MoveWindow( Main_zMappingArray[ 0 ].hDialogWnd,
              0,
              0,
              LOWORD( lParam ),
              HIWORD( lParam ),
              TRUE );


My PlugInPP::OnSize method gets called with the new size, no problem there. However, there is immediately another WM_SIZE message setting back the original sizes or the dialog resource.

I'm beginning to think that the silly buggers have subclassed the PlugInPP window and resize it whenever they see a WM_SIZE message, but that seems like an awful lot of work to do in a situation where the window is by no means resize-able.

Give the ATL::CDialogIMpl and ATL::IPropertyPageImpl base classes, I'm wondering if there's a trick to resizing them, or a trick to preventing them from being resized that I can opt out of.

Otherwise, I guess I'm stuck with subclassing my own window again, and just eating the WM_SIZE messages, and hope that works.
CraigL

AnswerRe: Resizing a window Pin
Craig Longman22-Sep-10 18:02
Craig Longman22-Sep-10 18:02 
AnswerRe: Resizing a window Pin
Craig Longman23-Sep-10 16:03
Craig Longman23-Sep-10 16:03 
GeneralRe: Resizing a window Pin
Blake Miller4-Oct-10 11:33
Blake Miller4-Oct-10 11:33 
GeneralRe: Resizing a window Pin
Craig Longman4-Oct-10 13:07
Craig Longman4-Oct-10 13:07 
QuestionBHO add ons of IE can not debug on IE9 Pin
am 200920-Sep-10 23:27
am 200920-Sep-10 23:27 
AnswerRe: BHO add ons of IE can not debug on IE9 Pin
KingsGambit22-Sep-10 2:23
KingsGambit22-Sep-10 2:23 
GeneralRe: BHO add ons of IE can not debug on IE9 Pin
am 200922-Sep-10 21:03
am 200922-Sep-10 21:03 
QuestionDeviceIoControl() Pin
mazizi19-Sep-10 20:43
mazizi19-Sep-10 20:43 
QuestionGet process handle access rights. Pin
Green Fuze13-Sep-10 13:10
Green Fuze13-Sep-10 13:10 
AnswerRe: Get process handle access rights. Pin
Cool_Dev13-Sep-10 22:52
Cool_Dev13-Sep-10 22:52 
GeneralRe: Get process handle access rights. Pin
Green Fuze13-Sep-10 22:58
Green Fuze13-Sep-10 22:58 
GeneralRe: Get process handle access rights. Pin
«_Superman_»13-Sep-10 23:06
professional«_Superman_»13-Sep-10 23:06 
GeneralRe: Get process handle access rights. Pin
Green Fuze13-Sep-10 23:33
Green Fuze13-Sep-10 23:33 
GeneralRe: Get process handle access rights. Pin
Cool_Dev14-Sep-10 2:43
Cool_Dev14-Sep-10 2:43 
GeneralRe: Get process handle access rights. Pin
Green Fuze14-Sep-10 9:04
Green Fuze14-Sep-10 9:04 
Question::ReadProcessMemory fails with ERROR_PARTIAL_COPY Pin
Green Fuze10-Sep-10 10:50
Green Fuze10-Sep-10 10:50 
AnswerRe: ::ReadProcessMemory fails with ERROR_PARTIAL_COPY Pin
«_Superman_»12-Sep-10 19:25
professional«_Superman_»12-Sep-10 19:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.