Impactnetworking


Borland C ++ Builder FAQ
The content

How to deduce on my form HTML'ку?

The author: OlegGG

To use TCppWebBrowser which by default is on tab Internet.

How to make, that in the Task bar there was no button of my program?

The author: OlegGG

ShowWindow (Application-> Handle, SW_HIDE); 

How to force to be updated all windows?

The author: OlegGG

InvalidateRect (0, NULL, true);  

How to make Form2 a separate window that it had the button on the Task bar?

The author: KAV

It is necessary to present to it style WS_EX_APPWINDOW:
SetWindowLong (Form2-> Handle, GWL_EXSTYLE, GetWindowLong (Form2-> Handle, GWL_EXSTYLE) |WS_EX_APPWINDOW); 

Whether it is possible to disconnect the button of closing of my window?

The author: OlegGG

HWND hWnd = Form1-> Handle;//here Handle the necessary window 
HMENU hMenu = GetSystemMenu (hWnd, false); 
if (hMenu) 
        { 
        EnableMenuItem (hMenu, SC_CLOSE, MF_GRAYED); 
        }

If it is necessary to delete menu item to "Close", instead of "EnableMenuItem (hMenu........" We write:
DeleteMenu (hMenu, SC_CLOSE, MF_BYCOMMAND); 
And if it wanted to mock at the user we write:
EnableMenuItem (hMenu, SC_CLOSE, MF_DISABLED); 
Then button "X" will be ungeared", but the menu item will"Close""is included", though it will not work :)