Newsgroup: it.comp.lang.visual-basic
Titolo: [?] Quali parametri per SendMessage ?

Salve a tutti !
Vi spiego la situazione, ho un form "papa'"  e altri 3 form "figli", NON in
una struttura MDI ma 4 form uno attaccato all'altro.
(avete presente WinAmp ?)
Questi 4 form li muovo intercettando il messaggio WM_MOVEWINDOW del form
principale e cambiando le coordinate dei forms collegati.
(lo so che é una schifezza ma a me va bene cosi' :-)
L'unico problema si presenta se per esempio metto un altra applicazione
davanti a questi 4 form, e poi clikko sull'icona nella barra di avvio per
ritornare alla mia applicaz., succede che viene mostrato solo il primo form
!!
Ora pensavo di intercettare il messaggio WM_ACTIVATE e poi mandare un
messaggio (sempre wm_activate) ad ogni form, con il metodo SendMessage.
Solo che SendMessage richiede anche i due parametri lparam, wparam...     se
devo mandare solo wm_activate questi valori possono essere a zero?
O magari conoscete una soluzione migliore ?
Ciao e grazie per la vostra pazienza !!
Dave
--
"The truth is out there"

Ma non basterebbe la AppActivate?
---
GbC
http://gbc.homeip.net
---

MSDN, MSDN canaglia...
[INIZIO QUOTE DA ARRESTO]
WM_ACTIVATE
The WM_ACTIVATE message is sent to both the window being activated and the
window being deactivated. If the windows use the same input queue, the
message is sent synchronously, first to the window procedure of the
top-level window being deactivated, then to the window procedure of the
top-level window being activated. If the windows use different input queues,
the message is sent asynchronously, so the window is activated immediately.
A window receives this message through its WindowProc function.
LRESULT CALLBACK WindowProc(
  HWND hwnd,       // handle to window
  UINT uMsg,       // WM_ACTIVATE
  WPARAM wParam,   // activation and minimization options
  LPARAM lParam    // handle to window (HWND)
);
Parameters
wParam
The low-order word specifies whether the window is being activated or
deactivated. This parameter can be one of the following values. Value
Meaning
WA_ACTIVE Activated by some method other than a mouse click (for example, by
a call to the SetActiveWindow function or by use of the keyboard interface
to select the window).
WA_CLICKACTIVE Activated by a mouse click.
WA_INACTIVE Deactivated.
The high-order word specifies the minimized state of the window being
activated or deactivated. A nonzero value indicates the window is minimized.
lParam
Handle to the window being activated or deactivated, depending on the value
of the wParam parameter. If the low-order word of wParam is WA_INACTIVE,
lParam is the handle to the window being activated. If the low-order word of
wParam is WA_ACTIVE or WA_CLICKACTIVE, lParam is the handle to the window
being deactivated. This handle can be NULL.
Return Values
If an application processes this message, it should return zero.
Remarks
If the window is being activated and is not minimized, the DefWindowProc
function sets the keyboard focus to the window. If the window is activated
by a mouse click, it also receives a WM_MOUSEACTIVATE message.
Requirements
  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Winuser.h; include Windows.h.
See Also
Keyboard Input Overview, Keyboard Input Messages, DefWindowProc,
SetActiveWindow, WM_MOUSEACTIVATE, WM_NCACTIVATE
Built on Monday, July 17, 2000
[FINE QUOTE DA ARRESTO]
Ciaotutti,
Alessandro
GbC <-...@O-O.OOO> wrote in message
news:Q37V5.4555$tS2.1...@news.infostrada.it...


Era una risposta al mio post?


No :)
Ciaotutti,
Alessandro
GbC <-...@O-O.OOO> wrote in message
news:U5bV5.6216$tS2.2...@news.infostrada.it...


ahecco...
:)
