Click here to Skip to main content
16,011,626 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralActiveX versioning Pin
KaЯl22-Aug-05 5:59
KaЯl22-Aug-05 5:59 
GeneralRe: ActiveX versioning Pin
David Crow22-Aug-05 7:22
David Crow22-Aug-05 7:22 
GeneralRe: ActiveX versioning Pin
KaЯl22-Aug-05 21:16
KaЯl22-Aug-05 21:16 
GeneralTransparent Dialog, but... Pin
Hamed Musavi22-Aug-05 5:16
Hamed Musavi22-Aug-05 5:16 
Questiontooltips for bitmaps? Pin
sayup22-Aug-05 5:13
sayup22-Aug-05 5:13 
AnswerRe: tooltips for bitmaps? Pin
Hamed Musavi22-Aug-05 5:33
Hamed Musavi22-Aug-05 5:33 
GeneralRe: tooltips for bitmaps? Pin
sayup22-Aug-05 18:21
sayup22-Aug-05 18:21 
GeneralRe: tooltips for bitmaps? Pin
Hamed Musavi22-Aug-05 22:32
Hamed Musavi22-Aug-05 22:32 
Hi,
First of all, It's NOT 'ounding' as you saidLaugh | :laugh: ;) Its Bounding.

I had not enough time to read (MSDN), this is all my memories!!, so there might be some problems,Please first read (MSDN) carefully for all functions here, before using them.
Do the following:

1-Activate 'Notify' on 'Style' tab of your 'picture control'(In Resource editor)

2-On your InitDialog :

// No tooltip created
m_toolTip.m_hWnd = NULL;
// Create ToolTip control
m_toolTip.Create(this, TTS_ALWAYSTIP );
// Enable multiline
m_toolTip.SendMessage(TTM_SETMAXTIPWIDTH, 0, 400);
CRect rc;<br />
GetDlgItem(IDC_PIC)->GetClientRect(rc);<br />
m_toolTip.AddTool(GetDlgItem(IDC_PIC),"ToolTip",rc,IDC_PIC);

//Time to activate tooltip
m_toolTip.Activate(TRUE);

3-Using your ClassWizard, Add a message handler for: 'PreTranslateMessage'

4-In the function :

... PreTranslateMessage(MSG* pMsg)
{
	//Add this line<br />
m_toolTip.RelayEvent(pMsg);	

}

Hope this will helpSmile | :)
AnswerRe: tooltips for bitmaps? Pin
Bob Ciora22-Aug-05 6:36
Bob Ciora22-Aug-05 6:36 
GeneralRe: tooltips for bitmaps? Pin
Bob Ciora22-Aug-05 6:37
Bob Ciora22-Aug-05 6:37 
GeneralRe: tooltips for bitmaps? Pin
Hamed Musavi22-Aug-05 10:20
Hamed Musavi22-Aug-05 10:20 
Generalsteps needed to call DeviceIoControl Pin
gamitech22-Aug-05 5:05
gamitech22-Aug-05 5:05 
GeneralRe: steps needed to call DeviceIoControl Pin
David Crow22-Aug-05 5:12
David Crow22-Aug-05 5:12 
GeneralRe: steps needed to call DeviceIoControl Pin
gamitech22-Aug-05 10:01
gamitech22-Aug-05 10:01 
GeneralRe: steps needed to call DeviceIoControl Pin
David Crow22-Aug-05 10:32
David Crow22-Aug-05 10:32 
GeneralRe: steps needed to call DeviceIoControl Pin
gamitech22-Aug-05 10:46
gamitech22-Aug-05 10:46 
Generalhttp attachment Pin
ppp00122-Aug-05 5:02
ppp00122-Aug-05 5:02 
GeneralCListCtrl HotItem colour Pin
Janette22-Aug-05 4:19
Janette22-Aug-05 4:19 
GeneralSupress the FileDownload Dialog in Internet Explorer Pin
G.Radhakrishna22-Aug-05 3:18
G.Radhakrishna22-Aug-05 3:18 
GeneralWindows Error Message Handler Pin
nripun22-Aug-05 2:41
nripun22-Aug-05 2:41 
GeneralRe: Windows Error Message Handler Pin
Cedric Moonen22-Aug-05 3:11
Cedric Moonen22-Aug-05 3:11 
GeneralRe: Windows Error Message Handler Pin
nripun22-Aug-05 3:20
nripun22-Aug-05 3:20 
GeneralRe: Windows Error Message Handler Pin
Blake Miller22-Aug-05 5:58
Blake Miller22-Aug-05 5:58 
GeneralLoad application as view Pin
Geert van Horrik22-Aug-05 2:41
Geert van Horrik22-Aug-05 2:41 
GeneralRe: Load application as view Pin
Chris Losinger22-Aug-05 4:12
professionalChris Losinger22-Aug-05 4:12 

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.