GetWindowThreadProcessId возращает 0

Discussion in 'WASM.WIN32' started by Selah, Jun 4, 2011.

  1. Selah

    Selah New Member

    Blog Posts:
    0
    Joined:
    Jul 10, 2007
    Messages:
    258
    Делаю так:
    Handle:=CreateWindow( '', '',WS_DISABLED , 0,0,0,0, 0,0,0,nil);
    th:=GetWindowThreadProcessId(Handle,nil);

    получаю th=0 c ошибкой Invalid window handle.



    Почему так происходит? Не корректно создаю окошко?
     
  2. h0t

    h0t Member

    Blog Posts:
    0
    Joined:
    Apr 3, 2011
    Messages:
    735
  3. Selah

    Selah New Member

    Blog Posts:
    0
    Joined:
    Jul 10, 2007
    Messages:
    258
    решил

    MyRegisterClass нужно обязательно делать
     
  4. Selah

    Selah New Member

    Blog Posts:
    0
    Joined:
    Jul 10, 2007
    Messages:
    258
    h0t спасибо