Windows Fullscreen mode ?

Тема в разделе "WASM.WIN32", создана пользователем calidus, 5 ноя 2007.

  1. calidus

    calidus Member

    Публикаций:
    0
    Регистрация:
    27 дек 2005
    Сообщения:
    618
    Подскажите, пожалуйста, как развернуть своё собственное окно на весь экран (чтобы никакие границы и заголовки этого окна не были видны).
     
  2. Proteus

    Proteus Member

    Публикаций:
    0
    Регистрация:
    19 июн 2004
    Сообщения:
    344
    Адрес:
    Russia
    ..размеры ему задать такие же как у экрана. Ну ещё TOP атрибут включить.
     
  3. q_q

    q_q New Member

    Публикаций:
    0
    Регистрация:
    5 окт 2003
    Сообщения:
    1.706
    calidus
    Код (Text):
    1. CreateWindowEx(WS_EX_TOPMOST, class, NULL, WS_POPUP,
    2.   0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), ...
     
  4. kero

    kero Модератор SOURCES & 2LZ

    Публикаций:
    0
    Регистрация:
    4 апр 2006
    Сообщения:
    1.074
    Адрес:
    Москва
    Добывать размеры десктопа - излишне.
    В обычном WinMain достаточно и этого:
    Код (Text):
    1.   ...
    2.   CreateWindowEx(0,offset _class,0,WS_POPUP,0,0,0,0,0,0,hInst,0)
    3.   mov hWnd,eax
    4.   ShowWindow(hWnd,SW_MAXIMIZE)
    5.   UpdateWindow(hWnd)
    6.   ...
     
  5. wasm_test

    wasm_test wasm test user

    Публикаций:
    0
    Регистрация:
    24 ноя 2006
    Сообщения:
    5.582
    kero
    лучше сделать TopMost, иначе будет видно панель задач вроде.
     
  6. calidus

    calidus Member

    Публикаций:
    0
    Регистрация:
    27 дек 2005
    Сообщения:
    618
    Спасибо это я все знаю, а все равно видно панели , а что за TopMost ??? впервые слышу
     
  7. calidus

    calidus Member

    Публикаций:
    0
    Регистрация:
    27 дек 2005
    Сообщения:
    618
    Вот это ? Тут требуется установленный фрамворк ? так как запист в мсдн в разработке фрамворка

    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::lol: 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
     
  8. LazzY

    LazzY New Member

    Публикаций:
    0
    Регистрация:
    6 мар 2006
    Сообщения:
    123
    нет TomMost это ExStyle окна
    а точнее WS_EX_TOPMOST
     
  9. calidus

    calidus Member

    Публикаций:
    0
    Регистрация:
    27 дек 2005
    Сообщения:
    618
    aaaa так это в стиле моно указать ... странно все там перепробовал и никак неее получалось
     
  10. CnCVK

    CnCVK New Member

    Публикаций:
    0
    Регистрация:
    9 авг 2006
    Сообщения:
    108
    вот как раз нет:
    SW_MAXIMIZE увеличивает окно до рабочей области.
    Рабочая область меньше чем весь экран - еще есть таскбар.
    поэтому q_q был прав.
     
  11. kero

    kero Модератор SOURCES & 2LZ

    Публикаций:
    0
    Регистрация:
    4 апр 2006
    Сообщения:
    1.074
    Адрес:
    Москва
    CnCVK
    Сколько слов...
     
  12. calidus

    calidus Member

    Публикаций:
    0
    Регистрация:
    27 дек 2005
    Сообщения:
    618
    оу )))))))) класно ...спасибки ))))))))