Click here to Skip to main content
15,914,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: scroll bar for a group-box control. Pin
Iain Clarke, Warrior Programmer24-Oct-08 0:50
Iain Clarke, Warrior Programmer24-Oct-08 0:50 
GeneralRe: scroll bar for a group-box control. Pin
Rajesh R Subramanian24-Oct-08 1:50
professionalRajesh R Subramanian24-Oct-08 1:50 
AnswerRe: scroll bar for a group-box control. Pin
MANISH RASTOGI24-Oct-08 0:56
MANISH RASTOGI24-Oct-08 0:56 
QuestionDialogBox Positioning problem Pin
Dhiraj kumar Saini23-Oct-08 21:38
Dhiraj kumar Saini23-Oct-08 21:38 
AnswerRe: DialogBox Positioning problem Pin
CPallini23-Oct-08 22:10
mveCPallini23-Oct-08 22:10 
GeneralRe: DialogBox Positioning problem Pin
Dhiraj kumar Saini23-Oct-08 22:52
Dhiraj kumar Saini23-Oct-08 22:52 
GeneralRe: DialogBox Positioning problem Pin
Rajesh R Subramanian23-Oct-08 23:13
professionalRajesh R Subramanian23-Oct-08 23:13 
GeneralRe: DialogBox Positioning problem Pin
CPallini23-Oct-08 23:30
mveCPallini23-Oct-08 23:30 
Well, in the chat window class (say CMyChat):
(1) define a (public) accessor for button coordinates, for instance,
CRect GetMyButtonRect();
(2) pass the this pointer to the dialog constructor, i.e.
CMyDialog myDlg(this);

Hence the dialog is able to get Button coords:
CMyChat * pParent = reinterpret_cast< CMyChat *> (GetParent());
CRect rcButton = pParent->GetMyButtonRect();



BTW: to retrieve button coords, use CButton::GetWindowRect() method.

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

Questionplease help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 21:28
kaviniswell23-Oct-08 21:28 
AnswerRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
Cedric Moonen23-Oct-08 21:34
Cedric Moonen23-Oct-08 21:34 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 21:42
kaviniswell23-Oct-08 21:42 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
Cedric Moonen23-Oct-08 21:48
Cedric Moonen23-Oct-08 21:48 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 21:57
kaviniswell23-Oct-08 21:57 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
Cedric Moonen23-Oct-08 22:05
Cedric Moonen23-Oct-08 22:05 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 22:24
kaviniswell23-Oct-08 22:24 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
Cedric Moonen23-Oct-08 22:36
Cedric Moonen23-Oct-08 22:36 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 22:53
kaviniswell23-Oct-08 22:53 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
Cedric Moonen23-Oct-08 23:05
Cedric Moonen23-Oct-08 23:05 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
SandipG 23-Oct-08 23:19
SandipG 23-Oct-08 23:19 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
CPallini23-Oct-08 22:13
mveCPallini23-Oct-08 22:13 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 22:26
kaviniswell23-Oct-08 22:26 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
CPallini23-Oct-08 22:40
mveCPallini23-Oct-08 22:40 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 22:56
kaviniswell23-Oct-08 22:56 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 23:30
kaviniswell23-Oct-08 23:30 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 23:42
kaviniswell23-Oct-08 23:42 

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.