Click here to Skip to main content
15,921,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiongraying/ungrayin not working? Pin
sayup22-Aug-05 1:42
sayup22-Aug-05 1:42 
AnswerRe: graying/ungrayin not working? Pin
Rage22-Aug-05 1:45
professionalRage22-Aug-05 1:45 
GeneralRe: graying/ungrayin not working? Pin
sayup22-Aug-05 3:59
sayup22-Aug-05 3:59 
GeneralRe: graying/ungrayin not working? Pin
Rage22-Aug-05 5:58
professionalRage22-Aug-05 5:58 
GeneralRe: graying/ungrayin not working? Pin
Bob Ciora22-Aug-05 6:53
Bob Ciora22-Aug-05 6:53 
GeneralProblem with Coordinates.... Pin
Ravi Sankar S22-Aug-05 0:36
Ravi Sankar S22-Aug-05 0:36 
GeneralRe: Problem with Coordinates.... Pin
ThatsAlok22-Aug-05 1:00
ThatsAlok22-Aug-05 1:00 
GeneralRe: Problem with Coordinates.... Pin
PravinSingh22-Aug-05 3:21
PravinSingh22-Aug-05 3:21 
You have two options:

i) Use GetWindowRect (which gives you rect in terms of screen coordinates) and then convert it using ScreenToClient. Then add the offset that you want to have for your list control from the top-left of your dialog.

ii) Use GetClientRect (which will directly give you the rectangle of YOUR COMPLETE DIALOG). So you need to add some offset to the top-left point (which is (0,0) right now), and subtract some offset from the bottom-right point.

Ravi Sankar S wrote:
At this time the value returned {0, 292, 0, 467} This time it draws at the top of the client area.

So from your description, I think using the rect {10, 250, 10, 400} would perhaps suit your needs.Smile | :)

Regards,
Pravin.
GeneralCOCreateInstance() call failed Pin
Prasannajit Dash22-Aug-05 0:14
Prasannajit Dash22-Aug-05 0:14 
GeneralRe: COCreateInstance() call failed Pin
toxcct22-Aug-05 0:24
toxcct22-Aug-05 0:24 
GeneralRe: COCreateInstance() call failed Pin
dharani22-Aug-05 0:25
dharani22-Aug-05 0:25 
GeneralRe: COCreateInstance() call failed Pin
MailtoGops22-Aug-05 19:08
MailtoGops22-Aug-05 19:08 
GeneralCobList Error deleting last element !!!- HELP ME Pin
dharani22-Aug-05 0:08
dharani22-Aug-05 0:08 
GeneralRe: CobList Error deleting last element !!!- HELP ME Pin
Jack Puppy22-Aug-05 0:57
Jack Puppy22-Aug-05 0:57 
GeneralRe: CobList Error deleting last element !!!- HELP ME Pin
dharani22-Aug-05 1:49
dharani22-Aug-05 1:49 
Generalreading a data file n a specific format Pin
a_david12321-Aug-05 23:41
a_david12321-Aug-05 23:41 
GeneralRe: reading a data file n a specific format Pin
toxcct22-Aug-05 0:04
toxcct22-Aug-05 0:04 
GeneralRe: reading a data file n a specific format Pin
David Crow22-Aug-05 5:01
David Crow22-Aug-05 5:01 
GeneralRe: reading a data file n a specific format Pin
toxcct22-Aug-05 5:57
toxcct22-Aug-05 5:57 
QuestionCan anyone help me ~please~~~!! Pin
ebinaini21-Aug-05 23:31
ebinaini21-Aug-05 23:31 
AnswerRe: Can anyone help me ~please~~~!! Pin
Aamir Butt21-Aug-05 23:46
Aamir Butt21-Aug-05 23:46 
AnswerRe: Can anyone help me ~please~~~!! Pin
toxcct22-Aug-05 0:13
toxcct22-Aug-05 0:13 
Generalcustom border Pin
Nishad S21-Aug-05 23:16
Nishad S21-Aug-05 23:16 
Questioncan anyone help me.... please Pin
moodsey21121-Aug-05 22:55
moodsey21121-Aug-05 22:55 
AnswerRe: can anyone help me.... please Pin
toxcct21-Aug-05 23:00
toxcct21-Aug-05 23:00 

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.