MFC-Projekt und veränderbare Fenstergröße



  • Hallo!
    Ich habe ein mfc-projekt erstellt und möchte die Fenstergröße verändern.
    Ich denke, dass es bei CreateWindow(cs) zu machen ist, da dort auch immer steht: //Ändern Sie hier die Fensterklasse oder das Erscheinungsbild, indem Sie
    // CREATESTRUCT cs modifizieren.
    Ich habe es versucht- ist bestimmt auch supereinfach wenn man es kann, aber ich bekommen es einfach nicht hin.
    Ich bin dankbar für Code und Hinweise an welche Stelle es eingefügt werden muss.



  • Hast du schon in die MSDN geguckt?

    Guck mal:

    The CREATESTRUCT structure defines the initialization parameters passed to the window procedure of an application.

    Members

    lpCreateParams
    Points to data to be used to create the window.

    hInstance
    Identifies the module-instance handle of the module that owns the new window.

    hMenu
    Identifies the menu to be used by the new window. If a child window, contains the integer ID.

    hwndParent
    Identifies the window that owns the new window. This member is NULL if the new window is a top-level window.

    cy
    Specifies the height of the new window.

    cx
    Specifies the width of the new window.

    y
    Specifies the y-coordinate of the upper-left corner of the new window. Coordinates are relative to the parent window if the new window is a child window; otherwise coordinates are relative to the screen origin.

    x
    Specifies the x-coordinate of the upper-left corner of the new window. Coordinates are relative to the parent window if the new window is a child window; otherwise coordinates are relative to the screen origin.

    style
    Specifies the new window’s style.

    lpszName
    Points to a null-terminated string that specifies the new window’s name.

    lpszClass
    Points to a null-terminated string that specifies the new window’s Windows class name (aWNDCLASS structure; for more information, see the Win32 SDK documentation).

    dwExStyle
    Specifies the extended style for the new window.

    Besonders interessant sind die 4 mit den kurzen Namen. 🙂


Anmelden zum Antworten