Click here to Skip to main content
16,016,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to interact within 2 Dialogs? Pin
23-May-02 4:13
suss23-May-02 4:13 
AnswerRe: How to interact within 2 Dialogs? Pin
Ravi Bhavnani23-May-02 4:27
professionalRavi Bhavnani23-May-02 4:27 
GeneralRe: How to interact within 2 Dialogs? Pin
23-May-02 4:35
suss23-May-02 4:35 
GeneralRe: How to interact within 2 Dialogs? Pin
Ravi Bhavnani23-May-02 4:38
professionalRavi Bhavnani23-May-02 4:38 
GeneralUsing ToolTips with CBitmap objects Pin
23-May-02 3:56
suss23-May-02 3:56 
GeneralRe: Using ToolTips with CBitmap objects Pin
Ravi Bhavnani23-May-02 4:07
professionalRavi Bhavnani23-May-02 4:07 
GeneralRe: Using ToolTips with CBitmap objects Pin
Luis E. Cuadrado24-May-02 4:56
Luis E. Cuadrado24-May-02 4:56 
GeneralRe: Using ToolTips with CBitmap objects Pin
Ravi Bhavnani24-May-02 5:07
professionalRavi Bhavnani24-May-02 5:07 
Luis E. Cuadrado wrote:
By a static picture you meant a static CBitmap object?

Not quite. The resource editor contains a "picture" control (that happens to be derived from CStatic, but that's not important). Add the control to your dialog and select the bitmap image (eg: IDC_MYBITMAP) to be displayed in the control. All this is done within the resource editor.

In your code, you can manipulate the picture control just like any other control. If the id of the picture control is IDC_FOO, you can set its tooltip by doing:
CWnd* pWnd = GetDlgItem (IDC_FOO);
ASSERT (pWnd != NULL);
m_ToolTip.AddTool(pWnd, _T("This is a picture"));
Luis E. Cuadrado wrote:
Sorry for the questions, I'm starting with MFC

Please don't apologize! We're here to help!

/ravi

"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
GeneralThe 'this' operator Pin
afronaut23-May-02 3:49
afronaut23-May-02 3:49 
GeneralRe: The 'this' operator Pin
Tim Smith23-May-02 3:53
Tim Smith23-May-02 3:53 
GeneralRe: The 'this' operator Pin
Le centriste23-May-02 8:52
Le centriste23-May-02 8:52 
GeneralFacing problem while making one button as Default on PropertySheet Pin
Ravi Jadhav23-May-02 3:47
Ravi Jadhav23-May-02 3:47 
GeneralRe: Facing problem while making one button as Default on PropertySheet Pin
Bill Wilson23-May-02 6:18
Bill Wilson23-May-02 6:18 
GeneralRe: Facing problem while making one button as Default on PropertySheet Pin
Ravi Jadhav23-May-02 19:09
Ravi Jadhav23-May-02 19:09 
GeneralRe: Facing problem while making one button as Default on PropertySheet Pin
Bill Wilson24-May-02 5:56
Bill Wilson24-May-02 5:56 
GeneralRe: Facing problem while making one button as Default on PropertySheet Pin
Ravi Jadhav24-May-02 20:48
Ravi Jadhav24-May-02 20:48 
GeneralWindows Fonts Problem Pin
23-May-02 3:39
suss23-May-02 3:39 
Generaldevice coordinates transformation Pin
BlackRider23-May-02 3:40
BlackRider23-May-02 3:40 
GeneralRe: device coordinates transformation Pin
Prem Kumar23-May-02 4:15
Prem Kumar23-May-02 4:15 
GeneralRe: device coordinates transformation Pin
Dana Holt23-May-02 4:18
Dana Holt23-May-02 4:18 
GeneralDetecting Microsoft Product on a machine Pin
23-May-02 3:38
suss23-May-02 3:38 
GeneralRe: Detecting Microsoft Product on a machine Pin
tongc23-May-02 4:07
tongc23-May-02 4:07 
GeneralRe: Detecting Microsoft Product on a machine Pin
Dana Holt23-May-02 4:33
Dana Holt23-May-02 4:33 
GeneralUpdate/redraw window Pin
jimNLX23-May-02 3:38
jimNLX23-May-02 3:38 
GeneralRe: Update/redraw window Pin
Prem Kumar23-May-02 4:10
Prem Kumar23-May-02 4:10 

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.