    ______________389

bool PostMessage(HWND hWnd, unsigned int Msg, WPARAM wParam,
LPARAM IParam) ;

 hWnd   ,   . 
   HWND_BROADCAST,     
   ,    ,  .
   NULL,       ( 
)  .

 Msg   .  wParam  1-
ram    .   -
          . 
        GetLastError.

   ,     -
  .   Perform,    :

Perform(unsigned int Msg, WPARAM wParam, LPARAM IParam);

   ,   ,     
 ,        C-H-Buil-
der.

6.3.2.3   

   ,   -
.   ,      Formi  Form2, 
,    UlMessI  U2Messl ,   -
  PMessl.  Formi         
 Form2.       

ftinclude "U2Messl.h"

  Visible  Form2    false.

   Formi  ,    Show Form2  Close
Form2.       

Form2->Show();

       

SendMessage(Form2->Handle,WM_CLOSE,0,0) ;

    WM_CLOSE (  
SendMessage)  Form2.    SendMessage 
   ,      Handle. -
 WM_CLOSE   ;   wParam  IParam -
  .

      :

Form2->Perforro(WM_CLOSE,0,0) ;

    .

   .  ,   
 Show Form2       Form2,  
 Close Form2    .     Formi -
   .

,     ,   
 Form2         Windows,  
  Hide.   .   , 
 Caption     Pmess2 (    -
      )   
  PMess2,       UlMess2. ,  
   ,      ,  