Click here to Skip to main content
15,911,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Need help on how to vertical scroll bar to my dialog box Pin
Stuart Dootson4-Feb-09 1:37
professionalStuart Dootson4-Feb-09 1:37 
QuestionHow do i draw line on picture control? Pin
z01e3-Feb-09 23:15
z01e3-Feb-09 23:15 
AnswerRe: How do i draw line on picture control? Pin
Hamid_RT3-Feb-09 23:57
Hamid_RT3-Feb-09 23:57 
GeneralRe: How do i draw line on picture control? Pin
z01e4-Feb-09 0:12
z01e4-Feb-09 0:12 
GeneralRe: How do i draw line on picture control? Pin
Stuart Dootson4-Feb-09 1:34
professionalStuart Dootson4-Feb-09 1:34 
AnswerRe: How do i draw line on picture control? Pin
Nishad S4-Feb-09 0:38
Nishad S4-Feb-09 0:38 
QuestionUsing GetClientRect() and ExtTextOut() Pin
Abhinay Kumar3-Feb-09 22:52
Abhinay Kumar3-Feb-09 22:52 
AnswerRe: Using GetClientRect() and ExtTextOut() Pin
Code-o-mat3-Feb-09 23:06
Code-o-mat3-Feb-09 23:06 
1. What do you mean by visible rectangle? If you mean the client rect of your window, you already queried that here:
Abhinay Kumar wrote:
GetClientRect(hWnd, &rt);

But note that in your code sniplet you get the client rect of the window into your rt variable and then you never use it, you explicitly define another rectangle called rtClient here:
Abhinay Kumar wrote:
SetRect(&rtClient,10,10,50,40);

and then use that to draw the text. Shouldn't you either be uring rt instead of rtClient to draw OR use rtClient in GetClientRect?

2. What should FORWARD_WM_CTLCOLOR do in the first place?

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

GeneralRe: Using GetClientRect() and ExtTextOut() Pin
Abhinay Kumar3-Feb-09 23:32
Abhinay Kumar3-Feb-09 23:32 
GeneralRe: Using GetClientRect() and ExtTextOut() Pin
Code-o-mat3-Feb-09 23:45
Code-o-mat3-Feb-09 23:45 
GeneralRe: Using GetClientRect() and ExtTextOut() Pin
Abhinay Kumar3-Feb-09 23:55
Abhinay Kumar3-Feb-09 23:55 
GeneralRe: Using GetClientRect() and ExtTextOut() Pin
Code-o-mat4-Feb-09 1:25
Code-o-mat4-Feb-09 1:25 
GeneralRe: Using GetClientRect() and ExtTextOut() Pin
Abhinay Kumar4-Feb-09 2:40
Abhinay Kumar4-Feb-09 2:40 
GeneralRe: Using GetClientRect() and ExtTextOut() Pin
Code-o-mat4-Feb-09 2:49
Code-o-mat4-Feb-09 2:49 
GeneralRe: Using GetClientRect() and ExtTextOut() Pin
Abhinay Kumar4-Feb-09 2:56
Abhinay Kumar4-Feb-09 2:56 
GeneralRe: Using GetClientRect() and ExtTextOut() Pin
Code-o-mat4-Feb-09 3:15
Code-o-mat4-Feb-09 3:15 
GeneralRe: Using GetClientRect() and ExtTextOut() Pin
Abhinay Kumar4-Feb-09 3:33
Abhinay Kumar4-Feb-09 3:33 
QuestionRe: Using GetClientRect() and ExtTextOut() Pin
David Crow4-Feb-09 3:22
David Crow4-Feb-09 3:22 
AnswerRe: Using GetClientRect() and ExtTextOut() Pin
Abhinay Kumar4-Feb-09 3:37
Abhinay Kumar4-Feb-09 3:37 
Questionproblem in vc++ project Pin
kir_MFC3-Feb-09 21:50
kir_MFC3-Feb-09 21:50 
AnswerRe: problem in vc++ project Pin
Smith#3-Feb-09 21:55
Smith#3-Feb-09 21:55 
AnswerRe: problem in vc++ project Pin
Nishad S3-Feb-09 22:11
Nishad S3-Feb-09 22:11 
QuestionRe: problem in vc++ project Pin
David Crow4-Feb-09 3:24
David Crow4-Feb-09 3:24 
Questionstrcpy Pin
hrishiS3-Feb-09 21:25
hrishiS3-Feb-09 21:25 
AnswerRe: strcpy Pin
Smith#3-Feb-09 21:53
Smith#3-Feb-09 21:53 

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.