tooltip
-
can anybody tell me when we login in computer and if caps lock ison then tool tip is there that caps lock is on how it comes as i make an applicsation in dialog based in mfc plz tellme example and plz give solid ans as i dont repeatr question plz.................. Please mail me
-
can anybody tell me when we login in computer and if caps lock ison then tool tip is there that caps lock is on how it comes as i make an applicsation in dialog based in mfc plz tellme example and plz give solid ans as i dont repeatr question plz.................. Please mail me
I think what you need is to show the tooltips on the controls of the dialog? Right? Use CToolTipCtrl. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_
-
can anybody tell me when we login in computer and if caps lock ison then tool tip is there that caps lock is on how it comes as i make an applicsation in dialog based in mfc plz tellme example and plz give solid ans as i dont repeatr question plz.................. Please mail me
Adding tooltip is simple. Just google for it... OnFocusing the edit box get the key state using
GetKeyState(VK_CAPITAL)
. The retun value will be 1 if CAPSLOCK is on see detailed return values below. . If the high-order bit is 1, the key is down; otherwise, it is up. . If the low-order bit is 1, the key is toggled. A key, such as the CAPS LOCK key, is toggled if it is turned on. The key is off and untoggled if the low-order bit is 0. A toggle key's indicator light (if any) on the keyboard will be on when the key is toggled, and off when the key is untoggled. Check MSDN for more information -
I think what you need is to show the tooltips on the controls of the dialog? Right? Use CToolTipCtrl. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_
_AnShUmAn_ wrote:
Right?
Not entirely. The "balloon" message is displayed regardless of the mouse's position. It is displayed only when the password control has focus.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
Adding tooltip is simple. Just google for it... OnFocusing the edit box get the key state using
GetKeyState(VK_CAPITAL)
. The retun value will be 1 if CAPSLOCK is on see detailed return values below. . If the high-order bit is 1, the key is down; otherwise, it is up. . If the low-order bit is 1, the key is toggled. A key, such as the CAPS LOCK key, is toggled if it is turned on. The key is off and untoggled if the low-order bit is 0. A toggle key's indicator light (if any) on the keyboard will be on when the key is toggled, and off when the key is untoggled. Check MSDN for more informationhi sir iam sorry this is not my question but as you tell GetKeyState(VK_CAPITAL) is for tool tip but sir where i can declare it if I MAKE AN DIALOG AND ON WHICH A EDIT BOX IS THERE Ashish Dogra MCA Noida
-
hi sir iam sorry this is not my question but as you tell GetKeyState(VK_CAPITAL) is for tool tip but sir where i can declare it if I MAKE AN DIALOG AND ON WHICH A EDIT BOX IS THERE Ashish Dogra MCA Noida
ON_EN_SETFOCUS handler of the dialog class e.g
BEG_MESSAGE_MAP()
ON_EN_SETFOCUS(IDC_EDIT1, OnSetfocusEdit1)
END_MESSAGE_MAPvoid CSampleDlgDlg::OnSetfocusEdit1()
{
}SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar." My Blog | Understanding State Pattern in C++ -- modified at 10:41 Tuesday 27th June, 2006 -
can anybody tell me when we login in computer and if caps lock ison then tool tip is there that caps lock is on how it comes as i make an applicsation in dialog based in mfc plz tellme example and plz give solid ans as i dont repeatr question plz.................. Please mail me
Are you asking how to show a tooltip? That's a new feature in XP, look up
EM_SHOWBALLOONTIP
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer