Click here to Skip to main content
16,014,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: baudrate and other serial communication parameters Pin
Cedric Moonen28-Jul-08 20:29
Cedric Moonen28-Jul-08 20:29 
QuestionMFC/Win32 Enumerate Font size ? Pin
Maximilien28-Jul-08 9:31
Maximilien28-Jul-08 9:31 
AnswerRe: MFC/Win32 Enumerate Font size ? Pin
_AnsHUMAN_ 28-Jul-08 9:42
_AnsHUMAN_ 28-Jul-08 9:42 
GeneralRe: MFC/Win32 Enumerate Font size ? Pin
Maximilien29-Jul-08 7:23
Maximilien29-Jul-08 7:23 
Questionshortcut for menu operations Pin
hariakuthota28-Jul-08 8:54
hariakuthota28-Jul-08 8:54 
Questiontooltips for controls in the group box Pin
hariakuthota28-Jul-08 8:52
hariakuthota28-Jul-08 8:52 
GeneralRe: tooltips for controls in the group box Pin
fantasy121528-Jul-08 16:52
fantasy121528-Jul-08 16:52 
QuestionRe: Wanna show multi-lines in the tooltip Pin
fantasy121528-Jul-08 19:34
fantasy121528-Jul-08 19:34 
Excute me, I wanna to show multi-lines in the tooltips. I add '\n' in the text, it doesn't work.
Can somebody help me?
DWORD dwToolStyle = WS_EX_TOOLWINDOW | WS_EX_TOPMOST |WS_EX_WINDOWEDGE;
m_hwndTooltip = ::CreateWindowEx(dwToolStyle, TOOLTIPS_CLASS, NULL,
	WS_POPUP | TTS_ALWAYSTIP | TTS_NOPREFIX | TTS_BALLOON,
	CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
	this->GetSafeHwnd(), NULL, ::AfxGetResourceHandle(), NULL);
ASSERT(m_hwndTooltip);

::SendMessage(m_hwndTooltip, TTM_ACTIVATE, (WPARAM)TRUE, NULL);
::SendMessage(m_hwndTooltip, TTM_SETDELAYTIME, TTDT_INITIAL, MAKELONG(1000, 0));
::SendMessage(m_hwndTooltip, TTM_SETDELAYTIME, TTDT_AUTOPOP, MAKELONG(1000, 0));
::SendMessage(m_hwndTooltip, TTM_SETDELAYTIME, TTDT_RESHOW, MAKELONG(1000, 0));

TOOLINFO info = {0};
info.cbSize = sizeof(TOOLINFO);
info.uFlags = TTF_CENTERTIP | TTF_IDISHWND | TTF_SUBCLASS;
info.hwnd = this->GetSafeHwnd();
info.uId = (UINT)::GetDlgItem(this->GetSafeHwnd(), IDC_APPLE);	//给IDC_APPLE添加tooltips
info.rect = CRect(0, 0, 0, 0);
info.hinst = ::AfxGetResourceHandle();
info.lpszText = _T("You can check this to see\n\n\nwhat is this"); //<font color="blue">I wanna multi-lines effection, but doesn't work, please help me!</font>
if ( !::SendMessage(m_hwndTooltip, TTM_ADDTOOL, NULL, (LPARAM)&info) )
{
	::AfxMessageBox("Add tool fail");
}

QuestionProblem with DLL Pin
Nandu_77b28-Jul-08 6:20
Nandu_77b28-Jul-08 6:20 
AnswerRe: Problem with DLL Pin
led mike28-Jul-08 6:30
led mike28-Jul-08 6:30 
JokeRe: Problem with DLL Pin
Luc Pattyn28-Jul-08 7:14
sitebuilderLuc Pattyn28-Jul-08 7:14 
GeneralRe: Problem with DLL Pin
led mike28-Jul-08 7:34
led mike28-Jul-08 7:34 
AnswerRe: Problem with DLL Pin
toxcct28-Jul-08 6:31
toxcct28-Jul-08 6:31 
QuestionRe: Problem with DLL Pin
Nandu_77b29-Jul-08 0:06
Nandu_77b29-Jul-08 0:06 
AnswerRe: Problem with DLL Pin
toxcct29-Jul-08 0:23
toxcct29-Jul-08 0:23 
GeneralRe: Problem with DLL Pin
Nandu_77b29-Jul-08 0:29
Nandu_77b29-Jul-08 0:29 
GeneralRe: Problem with DLL Pin
toxcct29-Jul-08 0:31
toxcct29-Jul-08 0:31 
GeneralRe: Problem with DLL Pin
ThatsAlok29-Jul-08 0:21
ThatsAlok29-Jul-08 0:21 
GeneralRe: Problem with DLL Pin
toxcct29-Jul-08 0:24
toxcct29-Jul-08 0:24 
AnswerRe: Problem with DLL Pin
Cedric Moonen28-Jul-08 7:41
Cedric Moonen28-Jul-08 7:41 
QuestionHow to set CFileDialog file filter control (cmb1) ? Pin
Osborn28-Jul-08 4:20
Osborn28-Jul-08 4:20 
AnswerRe: How to set CFileDialog file filter control (cmb1) ? Pin
Iain Clarke, Warrior Programmer28-Jul-08 4:44
Iain Clarke, Warrior Programmer28-Jul-08 4:44 
GeneralRe: How to set CFileDialog file filter control (cmb1) ? Pin
Osborn28-Jul-08 5:11
Osborn28-Jul-08 5:11 
GeneralRe: How to set CFileDialog file filter control (cmb1) ? Pin
Iain Clarke, Warrior Programmer28-Jul-08 5:29
Iain Clarke, Warrior Programmer28-Jul-08 5:29 
GeneralRe: How to set CFileDialog file filter control (cmb1) ? Pin
Osborn28-Jul-08 5:44
Osborn28-Jul-08 5:44 

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.