CreateWindow LPVOID

This is a discussion on CreateWindow LPVOID within the Windows Programming forums, part of the Platform Specific Boards category; If I create a window with CreateWindow() and I specify LPVOID to be a pointer to a struct, why doesn't ...

  1. #1
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293

    CreateWindow LPVOID

    If I create a window with CreateWindow() and I specify LPVOID to be a pointer to a struct, why doesn't it work?

    In the WM_CREATE I cast lParam to be the struct type and the data is just wrong...

  2. #2
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Oh, DW I think I figure it out. .. lParam is a createstruct pointer which has a pointer to my struct pointer right?

    [edit:] Yeah, ...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 12
    Last Post: 03-27-2006, 06:03 AM
  2. CreateWindow failure
    By TheDan in forum Windows Programming
    Replies: 6
    Last Post: 07-08-2005, 07:49 AM
  3. getting fed up with CreateWindow
    By ... in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2003, 03:42 PM
  4. pass several arguments to LPVOID param of CreateThread
    By Echidna in forum Windows Programming
    Replies: 4
    Last Post: 05-05-2002, 10:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21