Thread: CreateWindow LPVOID

  1. #1

    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
    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, 07:03 AM
  2. CreateWindow failure
    By TheDan in forum Windows Programming
    Replies: 6
    Last Post: 07-08-2005, 08:49 AM
  3. getting fed up with CreateWindow
    By ... in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2003, 04:42 PM
  4. pass several arguments to LPVOID param of CreateThread
    By Echidna in forum Windows Programming
    Replies: 4
    Last Post: 05-05-2002, 11:18 AM
Website Security Test