Modify the system menu with C ++ Builder

zhaozj2021-02-11  237

Add to FormCreate:

HWND HSYSMENU; long dw; form1-> height = 80; form1-> width = 250; form1-> left = screen-> width / 2; form1-> top = screen-> height / 3; hsysmenu = getSystemMenu (Form1- > WindowHandle, 0); RemoveMenu (hSysMenu, 4, 0x400); // cancel the menu system to maximize dw = GetWindowLong (Form1-> WindowHandle, -16); // Window styledw = dw & 0xFFFEFFFF; // Turn off maximize buttonSetWindowLong (Form1 -> WINDOWHANDLE, -16, DW);

There is a VB article in MSDN.

I turn it into BCB

转载请注明原文地址:https://www.9cbs.com/read-4492.html

New Post(0)