Thread: How do I adjust STATIC TEXT width to match Dialog/Window Width on ReSize e.g Maximize

  1. #1
    Registered User
    Join Date
    Apr 2015
    Posts
    1

    Question How do I adjust STATIC TEXT width to match Dialog/Window Width on ReSize e.g Maximize

    How do I adjust STATIC TEXT width to match Dialog/Window Width on ReSize e.g Maximize (VC++6)?

    Does anyone know how to resize a STATIC TEXT Control Width programmatically?
    The ID of the STATIC TEXT is: IDC_CURRENT_TIME
    I assume I have to write some code into this event...

    Code:
    void CMONITOROFF1Dlg::OnSize(UINT nType, int cx, int cy) 
    {
    
    CDialog::OnSize(nType, cx, cy);
    
    }
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX _8_ - text width
    By kmdv in forum Game Programming
    Replies: 1
    Last Post: 11-02-2010, 02:45 PM
  2. [C] change picture width and height in Static control (no MFC)
    By pc2-brazil in forum Windows Programming
    Replies: 1
    Last Post: 05-05-2008, 01:17 AM
  3. Width of window border
    By Tonto in forum Windows Programming
    Replies: 3
    Last Post: 08-23-2006, 09:10 PM
  4. Dialog box height/width differs in winXP
    By LuckY in forum Windows Programming
    Replies: 7
    Last Post: 05-04-2003, 03:13 PM
  5. How to get Text Width and Height?
    By Aidman in forum Windows Programming
    Replies: 4
    Last Post: 03-03-2003, 09:19 PM

Tags for this Thread