Подскажите, пожалуйста, как развернуть своё собственное окно на весь экран (чтобы никакие границы и заголовки этого окна не были видны).
calidus Код (Text): CreateWindowEx(WS_EX_TOPMOST, class, NULL, WS_POPUP, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), ...
Добывать размеры десктопа - излишне. В обычном WinMain достаточно и этого: Код (Text): ... CreateWindowEx(0,offset _class,0,WS_POPUP,0,0,0,0,0,0,hInst,0) mov hWnd,eax ShowWindow(hWnd,SW_MAXIMIZE) UpdateWindow(hWnd) ...
Вот это ? Тут требуется установленный фрамворк ? так как запист в мсдн в разработке фрамворка Form.TopMost Property Gets or sets a value indicating whether the form should be displayed as a topmost form. Namespace: System.Windows.Forms Assembly: System.Windows.Forms (in system.windows.forms.dll) Property Value true to display the form as a topmost form; otherwise, false. The default is false. Remarks A topmost form is a form that overlaps all the other (non-topmost) forms even if it is not the active or foreground form. Topmost forms are always displayed at the highest point in the z-order of the windows on the desktop. You can use this property to create a form that is always displayed in your application, such as a Find and Replace tool window. Example The following code example demonstrates how to create a topmost form. The example creates two forms, one that is maximized and one that will be displayed as a topmost form. The first form, named bottomForm, is displayed maximized, using the WindowState property, to better demonstrate the abilities of the topmost form. The second form, named topMostForm, sets the TopMost property to true to display the form as a topmost form. When this code is run, clicking on the maximized form will not cause the topmost form to be displayed below the maximized form. The example requires that the method defined in the example is called from another form. C++ Copy Code private: void CreateMyTopMostForm() { // Create lower form to display. Form^ bottomForm = gcnew Form; // Display the lower form Maximized to demonstrate effect of TopMost property. bottomForm->WindowState = FormWindowState::Maximized; // Display the bottom form. bottomForm->Show(); // Create the top most form. Form^ topMostForm = gcnew Form; // Set the size of the form larger than the default size. topMostForm->Size = System:rawing::Size( 300, 300 ); // Set the position of the top most form to center of screen. topMostForm->StartPosition = FormStartPosition::CenterScreen; // Display the form as top most form. topMostForm->TopMost = true; topMostForm->Show(); } Platforms Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1. Version Information .NET Framework Supported in: 3.0, 2.0, 1.1, 1.0 .NET Compact Framework Supported in: 2.0 See Also Reference Form Class Form Members System.Windows.Forms Namespace Form.TopLevel Property
вот как раз нет: SW_MAXIMIZE увеличивает окно до рабочей области. Рабочая область меньше чем весь экран - еще есть таскбар. поэтому q_q был прав.