:
, , .
no , , , .
, RemoveBorders, , , ( Ctrl + A, ), ( = > "" , Ctrl + C ), ( = > "" Ctrl + V ) . , , , RemoveBorder, . , RemoveBorders:
public IntPtr RemoveBorders(IntPtr WindowHandle, IntPtr MenuHandle)
{
if (MenuHandle == IntPtr.Zero)
{
MenuHandle = GetMenu(WindowHandle);
int count = GetMenuItemCount(MenuHandle);
for (int i = 0; i < count; i++)
RemoveMenu(MenuHandle, 0, (0x40 | 0x10));
}
else
{
SetMenu(WindowHandle,MenuHandle);
}
int WindowStyle = GetWindowLong(WindowHandle, -16);
DrawMenuBar(WindowHandle);
SetWindowLong(WindowHandle, -16, (WindowStyle & ~0x00080000));
SetWindowLong(WindowHandle, -16, (WindowStyle & ~0x00800000 | 0x00400000));
return MenuHandle;
}
, RemoveBorders:
, void IntPtr,
return MenuHandle;
SetWindowLong. , RemoveBorders ( IntPtr #), , , . , , RemoveBorders, , . RemoveBorders (bool remove) IntPtr MenuHandle, . IntPtr MenuHandle , , MenuHandle , . IntPtr.Zero( NULL ++), . - remove , if (remove)
if (MenuHandle == IntPtr.Zero)
, , . if. , MenuHandle NULL (.. IntPtr.Zero), else . , , IntPtr , GetMenu if, GetMenuItemCount, , , . , "" , , GetMenu, , NULL (IntPtr.Zero #), else IntPtr.Zero ( NULL ++). RemoveBorders .
RemoveBorders , . , . : IntPtr, , RemoveBorders, , , , . RemoveBorders, , , , RemoveBorders. , !