SoloCodigo

Programación General => C/C++ => Visual C++ => Mensaje iniciado por: Ethernet en Domingo 22 de Abril de 2007, 08:00

Título: No Puedo Mover La Ventana
Publicado por: Ethernet en Domingo 22 de Abril de 2007, 08:00
Hola, tengo esto:

Código: Text
  1.  
  2.    hwnd = CreateWindowEx (
  3.            0,                   /* Extended possibilites for variation */
  4.            szClassName,         /* Classname */
  5.            "123456",       /* Title Text */
  6.            WS_GROUP | WS_SYSMENU, /* default window */
  7.            NULL,       /* Windows decides the position */
  8.            NULL,       /* where the window ends up on the screen */
  9.            544,                 /* The programs width */
  10.            375,                 /* and height in pixels */
  11.            HWND_DESKTOP,        /* The window is a child-window to desktop */
  12.            NULL,                /* No menu */
  13.            hThisInstance,       /* Program Instance handler */
  14.            NULL                 /* No Window Creation data */
  15.            );
  16.  
  17.     /* Make the window visible on the screen */
  18.     ShowWindow (hwnd, nFunsterStil);
  19.  
  20.  

Cuando trato de arrastrar la ventana.. no pasa nada.. esta fija.
Título: Re: No Puedo Mover La Ventana
Publicado por: SteelX en Martes 24 de Abril de 2007, 17:15
http://winapi.conclase.net/curso/index.php?cte=WindowStyles (http://winapi.conclase.net/curso/index.php?cte=WindowStyles)

segun esto cuando defines un WS_SYSMENU debes agregar tambien WS_CAPTION.
Título: Re: No Puedo Mover La Ventana
Publicado por: diego.martinez en Jueves 3 de Mayo de 2007, 18:02
respuesta tonta pero...

...tienes bucle de mensajes?