Click here to Skip to main content
15,926,375 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionRe: properties of user controls Pin
abyclassic14-Jun-07 0:00
abyclassic14-Jun-07 0:00 
AnswerRe: properties of user controls Pin
PandemoniumPasha14-Jun-07 20:34
PandemoniumPasha14-Jun-07 20:34 
AnswerRe: properties of user controls Pin
PandemoniumPasha12-Jun-07 1:18
PandemoniumPasha12-Jun-07 1:18 
QuestionAdding & Removing properties of user controls Pin
abyclassic12-Jun-07 0:01
abyclassic12-Jun-07 0:01 
QuestionHow can simulate button clicking in multiple threads environment? Pin
gzcjun11-Jun-07 23:48
gzcjun11-Jun-07 23:48 
QuestionHow to get 1st date of a month Pin
chandra7210-Jun-07 9:10
chandra7210-Jun-07 9:10 
AnswerRe: How to get 1st date of a month Pin
Christian Graus10-Jun-07 18:53
protectorChristian Graus10-Jun-07 18:53 
QuestionTransparent tooltip gets focus with the manifest-style under Windows XP Pin
ASCODATA9-Jun-07 4:51
ASCODATA9-Jun-07 4:51 
A Tooltip with TTF_TRANSPARENT and TTF_TRACK tool gets the focus, if I used
under Windows XP the
manifest-style and click with the mouse on the tooltip. But I want, that the
tooltip dispaths
the messages to the window, that is under the tooltip. I have searched in
the world wide web about
this problem, but did not found other persons with the same problem. I have
tested other
example-applications from www.codeproject.com, with a litle modification
(the tooltip was only
shown, but not hidden) and the tested applications have the same problem. I
don't know, how Microsoft
use in the VC6.0 in the Workarea-Window also an tooltip-window, because they
haven't the same problem.

The following source-code is from my test-application. The program is a
simple MFC-dialog-program,
the dialog includes an OK- and Cancel-button. m_wndToolTip is from
CToolTipCtrl.
void CTooltiptestDlg::OnOK()
{
TOOLINFO TI;
char caText[1024];
static long nIndex = 0;
CRect rectTemp;
CFont* pfont;
CWnd* pwndOK;

memset(&TI, 0, sizeof(TI));
TI.cbSize = sizeof(TI);
sprintf(caText, "nIndex=%d", nIndex);
TI.lpszText = caText;

if(IsWindow(m_wndToolTip) == FALSE)
{
m_wndToolTip.Create(this, TTS_ALWAYSTIP | TTS_NOPREFIX);
m_wndToolTip.SetMaxTipWidth(SHRT_MAX);

//Add tool
TI.uFlags = TTF_TRACK | TTF_TRANSPARENT;

m_wndToolTip.SendMessage(TTM_ADDTOOL, 0, (LPARAM)&TI);
}
else
{
//Modify the text of the tooltip.
m_wndToolTip.SendMessage(TTM_UPDATETIPTEXT, 0, (LPARAM)&TI);
}

//Take over the font from the dialog.
pfont = GetFont();
if(pfont != NULL)
{
m_wndToolTip.SetFont(pfont);
}

//Set the position of the tooltip.
pwndOK = GetDlgItem(IDOK);
pwndOK->GetWindowRect(&rectTemp);
m_wndToolTip.SendMessage(TTM_TRACKPOSITION,
0, (LPARAM)MAKELONG(rectTemp.left, rectTemp.top));

//Show tooltip
memset(&TI, 0, sizeof(TI));
TI.cbSize = sizeof(TI);
m_wndToolTip.SendMessage(TTM_TRACKACTIVATE, TRUE, (LPARAM)&TI);

//Increment the static index
nIndex++;
}
I haven't called the CToolTipCtrl::RelayEvent-function in
CWnd::PreTranslateMessage, because the tool
is added with TTF_TRANSPARENT and TTF_TRACK, position with TTM_TRACKPOSITION
and showed with
TTM_TRACKACTIVATE.

Can anybody help me???

Johannes Ody
Question how do i display the name starting with any letter(A-Z,a-z) in textbox using vb.net? Pin
sathyan_82949-Jun-07 3:12
sathyan_82949-Jun-07 3:12 
QuestionDistributing Small Windows Apps Pin
John Held8-Jun-07 3:26
John Held8-Jun-07 3:26 
AnswerRe: Distributing Small Windows Apps Pin
But_Im_a_Lady8-Jun-07 4:25
But_Im_a_Lady8-Jun-07 4:25 
AnswerRe: Distributing Small Windows Apps Pin
kubben11-Jun-07 4:05
kubben11-Jun-07 4:05 
AnswerRe: Distributing Small Windows Apps Pin
John Held11-Jun-07 4:37
John Held11-Jun-07 4:37 
AnswerRe: Distributing Small Windows Apps Pin
Kevin McFarlane12-Jun-07 3:24
Kevin McFarlane12-Jun-07 3:24 
Questionhow do i remove selected row permanently from sql database through datagrid? Pin
sathyan_82947-Jun-07 4:07
sathyan_82947-Jun-07 4:07 
AnswerRe: how do i remove selected row permanently from sql database through datagrid? Pin
Manas Bhardwaj7-Jun-07 4:43
professionalManas Bhardwaj7-Jun-07 4:43 
AnswerRe: how do i remove selected row permanently from sql database through datagrid? Pin
I Believe In GOD7-Jun-07 4:57
I Believe In GOD7-Jun-07 4:57 
QuestionHow to get parent MenuItems to respond to Click event? Pin
Rick Bidlack6-Jun-07 14:31
Rick Bidlack6-Jun-07 14:31 
AnswerRe: How to get parent MenuItems to respond to Click event? Pin
Colin Angus Mackay6-Jun-07 23:23
Colin Angus Mackay6-Jun-07 23:23 
QuestionTextbox Pin
dodoxor5-Jun-07 23:24
dodoxor5-Jun-07 23:24 
AnswerRe: Textbox Pin
Brady Kelly5-Jun-07 23:32
Brady Kelly5-Jun-07 23:32 
GeneralRe: Textbox Pin
Manas Bhardwaj7-Jun-07 0:08
professionalManas Bhardwaj7-Jun-07 0:08 
GeneralData Binding in List and Detail Combination Pin
Brady Kelly5-Jun-07 23:05
Brady Kelly5-Jun-07 23:05 
QuestionWhile loop Pin
dodoxor5-Jun-07 4:26
dodoxor5-Jun-07 4:26 
AnswerRe: While loop Pin
kubben5-Jun-07 4:43
kubben5-Jun-07 4:43 

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.