Results 1 to 5 of 5

Thread: How to place border around CStatic

  1. #1
    Join Date
    Mar 2011
    Posts
    81

    How to place border around CStatic

    Hello friend, I have work on the C programming language and I got little bit experience on this language. Now I would like to place a border around a CStatic control. For doing this complicated task I thing the C programming language is best. Then I try to use the ModifyStyle for this program task but it not help me to solve the problem. Is there any way or any method present that helps to place a border around it? Thanks in advance.

  2. #2
    Join Date
    Apr 2009
    Posts
    569

    Re: How to place border around CStatic

    I suggest you to just try ModifyStyleEx method on MSDN. This will be help to you for doing such complicated task. Then use this method and it will help to you for solving the border. This method is useful for modifies the extended style of the specified window. This is really helpful to do this task. The syntax of this method is to be wnd.modifyStyleEx(remove[, add]) . Then use this syntax for doing such complicated task. This is really work.

  3. #3
    Join Date
    May 2009
    Posts
    529

    Re: How to place border around CStatic

    This is the best way to do this complicated task. Then you need to use the correct syntax of this ModifyStyleEx method. This ModifyStyleEx will be returns nonzero and hence the dialog attributes are unchanged. Then use this method and this is really help to place border around CStatic. The expert has also knowledge about this issue. Then you need to use this method and this will be also alternative way to solve the problem.

  4. #4
    Join Date
    May 2009
    Posts
    527

    Re: How to place border around CStatic

    I suggest you the special code to do this task. The code is to be m_myStaticControl.ModifyStyleEx(WS_EX_CLIENTEDGE, NULL, SWP_FRAMECHANGED);
    Then use this code and it really helps to you for do the border to the CStatic. These codes that will be assign the border to the CStatic. You need to just properly insert this code onto the program and then compile this program. Then run this program using the compiler. This will be help to assign the border to the CStatic.

  5. #5
    Join Date
    May 2009
    Posts
    543

    Re: How to place border around CStatic

    You can also use the other code to do this task. This code is to be as follows:
    m_myStaticControl.ModifyStyleEx(WS_EX_CLIENTEDGE | WS_EX_CLIENTEDGE, NULL, SWP_FRAMECHANGED);
    m_myStaticControl.ModifyStyle(WS_SUNKEN, NULL, SWP_FRAMECHANGED);

    This two line code will be help to assign the border to the CStatic. This will be execute easily on the program and it will be good for such task. The expert will also give you the alternative code. There might be possibility that they suggest you the alternative solution method. Then use the expert help and do this task.

Similar Threads

  1. CSS limit border
    By Aspen in forum Software Development
    Replies: 3
    Last Post: 03-08-2009, 07:39 PM
  2. CSS border length and spacing
    By Visala in forum Software Development
    Replies: 3
    Last Post: 27-07-2009, 05:08 PM
  3. How to fix MAC black border
    By dan-dan in forum Operating Systems
    Replies: 3
    Last Post: 20-06-2009, 07:57 PM
  4. No Border In iframe
    By QUINEISHA in forum Software Development
    Replies: 2
    Last Post: 16-05-2009, 01:04 PM
  5. Remove Thumbnails Border
    By Sunena in forum Customize Desktop
    Replies: 2
    Last Post: 03-03-2009, 02:04 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,278,029.35845 seconds with 16 queries