Re: WndProc in managed C# code

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

From: Alex Feinman [MVP] (public_news_at_alexfeinman.com)
Date: 08/18/04


Date: Tue, 17 Aug 2004 18:02:18 -0700

Actually the better way is by using GetCapture. I'm not aware of any side
effects of doing that (unlike SetFocus/GetFocus)

-- 
Alex Feinman
---
Visit http://www.opennetcf.org
"Eugene Mayevski" <mayevski@eldos.org> wrote in message 
news:u7GBwAKhEHA.592@TK2MSFTNGP11.phx.gbl...
> Hello!
> You wrote  on Tue, 17 Aug 2004 11:13:47 -0700:
>
> PGT> That's right!  Alex did get that to work, didn't he?  Sorry, I'd
> PGT> forgotten about how impressive that was...
>
> There's one narrow place in that solution -- HWND is obtained using
> GetFocus(). While sometimes this works, this is obviously not a solution 
> for
> every window.
> Does anybody know how to get native (OS-specific) HWND from WinForms 
> window?
>
> With best regards,
> Eugene Mayevski
> 


Relevant Pages

  • Re: Access Calculator Menu Bar
    ... >> Calculator should suppord the standard shortcuts ... >> window. ... >> feed the characters to calc. ... >> Alex Feinman ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: CreateProcess, WaitForSingleObject
    ... receive messages and can I do that with third party applications like PIE. ... LRESULT CALLBACK WndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) ... > that your window went out of focus. ... >>> Alex Feinman ...
    (microsoft.public.pocketpc.developer)
  • Re: running app in background smartphone?
    ... "Mustafa Rabie" wrote in message ... >> Alex Feinman ... >>> thanks peter, ... Yes bringing a window back to the foreground is sometimes a bit ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Converting PWI format to RTF format on Desktop PC machine?
    ... You create a window as usually - using CreateWindow. ... should be set to teh return value of LoadLibrary("C:\Program Files\Microsoft ... Alex Feinman ... "ppcinfo" wrote in message ...
    (microsoft.public.pocketpc.developer)
  • Re: How can I limit SettingsForm be Opened?
    ... you should use LocalSpy (hold down activation button and click and hold with ... the stylus in an empty part of the start bar) to give you the window ... > Alex Feinman ... >> why hwnd alway IntPtr.Zero? ...
    (microsoft.public.dotnet.framework.compactframework)