CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Title size

  1. #1
    Join Date
    Sep 2004
    Posts
    5

    Title size

    hello guys

    i have a question how can we increase the height of the window's title using MFC/WinAPI/C# any one have an idea pls help me

    thanx

  2. #2
    Join Date
    Apr 2002
    Location
    St.Petersburg, Russia
    Posts
    714

    Re: Title size

    Use SystemParametersInfo() function with SPI_SETNONCLIENTMETRICS parameter. See MSDN for details.
    With best wishes, Alexander Hritonenkov

  3. #3
    Join Date
    Sep 2004
    Posts
    5

    Re: Title size

    it will set for all the windows in the system but i want to change the title size of my own window

  4. #4
    Join Date
    Apr 2002
    Location
    St.Petersburg, Russia
    Posts
    714

    Re: Title size

    You can create window WITHOUT WS_CAPTION style. And allocate as much area for caption, as you want. Then you should handle it's paint in WM_NCPAINT message handler. And to handle mouse you should respond to WM_NCHITTEST message. Try.
    Last edited by Scrambler; September 24th, 2004 at 07:07 AM.
    With best wishes, Alexander Hritonenkov

  5. #5
    Join Date
    Sep 2004
    Posts
    5

    Re: Title size

    WS_CAPTION other then this style i can't attach standard menus and toolbar. i want a standard window with large NonClient Area(Title bar) then standard title

    thanx for ur reply

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured