Re: Rounding error using vbContainerSize

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Argh! I didn't realize that not all objects I'll get as "Parent" will
expose a hWnd!

So, if I have such a parent, I'll crash my whole wonderful solution.

Any ideas on how to obtain the hWnd reliably from the "Parent" object?

Thanks!

Robert
.



Relevant Pages

  • Re: afxMapHWND with Shared Release DLL
    ... HWND which is not in the map down as a parent window. ... way to pass a parent CWnd from an EXE into a child CWnd inside a DLL I'd ... I would try to resolve this in MFC, as it is the easier route than dumping ...
    (microsoft.public.vc.mfc)
  • Re: Rounding error using vbContainerSize
    ... that PictureBox, then UserControl.Parent will return the Form object, ... Same goes with Frame. ... So I'm using the following code to determine my TRUE parent: ... If (hwnd = Parent.hwnd) Then ...
    (microsoft.public.vb.controls)
  • Making a VB-Form Modal to a known hWnd ?
    ... make owner and parent window of a VB6 form to a known HWND. ... message to the new parent, but the parent of the VB6 form remains NULL. ... Common Dialog with an additional button. ...
    (microsoft.public.vb.winapi)
  • Re: Obtaining folder path from folders window handle
    ... have the hwnd to 'Progman'. ... What's the problem with FindWindow? ... under 'Desktop' have a parent listed as another item on the same level. ... But still, none report a parent of 'Desktop', as reported by ...
    (microsoft.public.vb.winapi)
  • Re: Open Forms in a TabControl (C#)
    ... First try setting the sub-form's Parent to the ... then get the TabPages's hWnd and the sub-form's ... > interface consists of a TabControl with 6 tabs. ... and then load the correct form into the correct ...
    (microsoft.public.dotnet.framework.compactframework)