Click here to Skip to main content
15,920,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Resizing Pin
Sarriss12-Oct-08 8:11
Sarriss12-Oct-08 8:11 
GeneralRe: Resizing Pin
enhzflep12-Oct-08 8:43
enhzflep12-Oct-08 8:43 
GeneralRe: Resizing Pin
Mark Salsbery12-Oct-08 9:02
Mark Salsbery12-Oct-08 9:02 
GeneralRe: Resizing Pin
Mark Salsbery12-Oct-08 9:10
Mark Salsbery12-Oct-08 9:10 
GeneralRe: Resizing Pin
Sarriss12-Oct-08 10:55
Sarriss12-Oct-08 10:55 
GeneralRe: Resizing Pin
Mark Salsbery12-Oct-08 11:18
Mark Salsbery12-Oct-08 11:18 
GeneralRe: Resizing Pin
Sarriss12-Oct-08 12:10
Sarriss12-Oct-08 12:10 
GeneralRe: Resizing Pin
enhzflep12-Oct-08 21:50
enhzflep12-Oct-08 21:50 
Okay, I've had a look at your code Sarriss, and the one thing that strikes me more than anything is the approach you've taken.
Typically, whenever a resizeable box with rounded corners is drawn, it is drawn using 9 images - top left corner, top middle, top right corner, right middle, middle-middle, right-middle, bot left corner, bot middle, bot right corner.
Doing so means that the corner pieces are always drawn at the correct scale and that the window is sized by stretching all pieces except the corner images.

In your case, it'll be not quite that simple since the bar across the top of the window isn't of uniform height. You may need 5 images to cover the top - the two corners, the low part, the high part and the transition between the two. To make the window wider, you'd just stretch the high part and/or the low part, while drawing the corners and the transition at 1:1 scale.


If you've not seen it, you may like to take look at this.[^]
GeneralRe: Resizing Pin
Sarriss13-Oct-08 1:12
Sarriss13-Oct-08 1:12 
GeneralRe: Resizing Pin
enhzflep13-Oct-08 2:28
enhzflep13-Oct-08 2:28 
GeneralRe: Resizing Pin
Sarriss13-Oct-08 2:33
Sarriss13-Oct-08 2:33 
GeneralRe: Resizing Pin
enhzflep13-Oct-08 2:44
enhzflep13-Oct-08 2:44 
GeneralRe: Resizing Pin
Sarriss13-Oct-08 2:51
Sarriss13-Oct-08 2:51 
GeneralRe: Resizing Pin
enhzflep13-Oct-08 3:02
enhzflep13-Oct-08 3:02 
GeneralRe: Resizing Pin
Sarriss13-Oct-08 3:10
Sarriss13-Oct-08 3:10 
GeneralRe: Resizing Pin
Mark Salsbery12-Oct-08 7:47
Mark Salsbery12-Oct-08 7:47 
QuestionI have some questions. Pin
FR2ESOD12-Oct-08 1:36
FR2ESOD12-Oct-08 1:36 
AnswerRe: I have some questions. Pin
Jijo.Raj12-Oct-08 2:04
Jijo.Raj12-Oct-08 2:04 
AnswerRe: I have some questions. Pin
Bram van Kampen12-Oct-08 2:30
Bram van Kampen12-Oct-08 2:30 
QuestionNulls inserted between text characters when using GetDlgItemText Pin
ForNow11-Oct-08 21:05
ForNow11-Oct-08 21:05 
AnswerRe: Nulls inserted between text characters when using GetDlgItemText Pin
CPallini11-Oct-08 21:41
mveCPallini11-Oct-08 21:41 
AnswerRe: Nulls inserted between text characters when using GetDlgItemText Pin
Hamid_RT11-Oct-08 22:13
Hamid_RT11-Oct-08 22:13 
AnswerRe: Nulls inserted between text characters when using GetDlgItemText Pin
ForNow11-Oct-08 23:31
ForNow11-Oct-08 23:31 
Questionhow to set null to 2*2 static array in c++ Pin
john563211-Oct-08 17:36
john563211-Oct-08 17:36 
AnswerRe: how to set null to 2*2 static array in c++ Pin
Jijo.Raj11-Oct-08 19:13
Jijo.Raj11-Oct-08 19:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.