Re: How to get the Class name of a window ?

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

From: Shiva (shiva_sm_at_online.excite.com)
Date: 08/13/04


Date: Fri, 13 Aug 2004 20:02:15 +0530

One option is to use the Win32 API GetClassName(), using PInvoke, on each of
those child controls.

"krishnadevan" <kdworld@hotmail.com> wrote in message
news:Oxw067TgEHA.3476@tk2msftngp13.phx.gbl...
Hi friends

How i can get the class name of a window..
My requirment is , I have MDI form that contains many controls..I want to
know the class of each controls in that form at runtime ?

any methods ?

Thanks in advance
Krishnan



Relevant Pages

  • Re: Child Window Creation
    ... of the window looks like a valid value, it cannot be used as the parent to ... create the child controls in PreSubclassWindow. ... try/catch will not catch this because it is not an MFC exception or C++ ...
    (microsoft.public.vc.mfc)
  • Re: GDI+ Paint over children controls such as button as well as non-client scrollbar
    ... There are two ways to put drawings on top of child controls. ... draw directly on the desktop. ... Get a DC for the desktop using null as a window handle, ... >I am trying to paint in a custom control "OnPaint" but can not paint over ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Child Window Creation
    ... I tried starting the initialization code by posting a UWM_ message in OnCreate, but it was getting handled before the window painted. ... DDX_Control, and you post a message from within PreSubclassWindow, there ... Now this CWnd derived class needs to create some child controls of its ... P.S. this question should get my MVP revoked. ...
    (microsoft.public.vc.mfc)
  • Re: I am having a repaint problem with a child dialog
    ... The second dialog must have the DS_CONTROL style set. ... > Created a second dialog window which is a Child of the first dialog. ... When you re-size the window the draw item disappears again. ...
    (microsoft.public.vc.mfc)
  • Re: This is a tough one - Panel Location within a window
    ... Search the child controls for class name WindowsForms10.BUTTON.app.* where * might be different on your machine, ... Try looking for that class name as a child, and try calling GetWindowText on each window. ... finder tool over the panels, Spy++ would show smaller borders if the panels ...
    (microsoft.public.vb.general.discussion)