dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: how will i get wnd value (define in Winproc) just after CreateWindowExW statement exe

  1. #1
    Join Date
    Sep 2008
    Posts
    6

    how will i get wnd value (define in Winproc) just after CreateWindowExW statement exe

    static LRESULT CALLBACK WindowProc(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam)
    {

    }

    int main(..)
    {
    HWND wnd1 = CreateWindowExW(...);

    here how will i get wnd value (define in Winproc)in this line, e.g. just after CreateWindowExW statement execute.

    }

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,456

    Re: how will i get wnd value (define in Winproc) just after CreateWindowExW statement

    What type of project are you using? MFC or Win32 or console application?
    int main(..)
    {
    HWND wnd1 = CreateWindowExW(...);

    here how will i get wnd value (define in Winproc)in this line, e.g. just after CreateWindowExW statement execute.
    It is not clear what you mean...
    the CreateWindowExW does return the window handle (wnd1 in your code snippet) if it succeeds.
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)