Click here to Skip to main content
15,909,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: to display thumbnails on ListView Pin
Hamid_RT26-Feb-07 7:26
Hamid_RT26-Feb-07 7:26 
AnswerRe: to display thumbnails on ListView Pin
vasu_sri26-Feb-07 23:34
vasu_sri26-Feb-07 23:34 
GeneralRe: to display thumbnails on ListView Pin
Hamid_RT27-Feb-07 0:55
Hamid_RT27-Feb-07 0:55 
GeneralRe: to display thumbnails on ListView Pin
vasu_sri27-Feb-07 2:54
vasu_sri27-Feb-07 2:54 
GeneralRe: to display thumbnails on ListView Pin
Hamid_RT27-Feb-07 7:36
Hamid_RT27-Feb-07 7:36 
QuestionContext menu Handler Example Pin
Omar Mallat26-Feb-07 1:01
professionalOmar Mallat26-Feb-07 1:01 
AnswerRe: Context menu Handler Example Pin
Cedric Moonen26-Feb-07 1:10
Cedric Moonen26-Feb-07 1:10 
QuestionMouse over control Pin
baerten26-Feb-07 0:26
baerten26-Feb-07 0:26 
Hi everybody,

i used a customizated CEdit from out CodeProject :


void MyCEdit::OnKillFocus(CWnd* pNewWnd)
{
CEdit::OnKillFocus(pNewWnd);

SetBkColor(RGB(255,255,255));
}

void MyCEdit::OnSetFocus(CWnd* pOldWnd)
{
CEdit::OnSetFocus(pOldWnd);

SetBkColor(RGB(0,216,255));
}

void MyCEdit::SetBkColor(COLORREF crColor)
{
m_crBkColor = crColor; // Passing the value passed by the dialog to the member variable for Backgound Color
m_brBkgnd.DeleteObject(); // Deleting any Previous Brush Colors if any existed.
m_brBkgnd.CreateSolidBrush(crColor); // Creating the Brush Color For the Edit Box Background
RedrawWindow();
}


switching between the textboxes displays the current textbox with the focus a blue background.
Switching with the TAB-Key works nice, but with the mouse provokes a strange effect.

If i'm on textbox A and switch to B, B gets the blue background BUT a keeps a small frame at the extern sides Sniff | :^)

If i pass (not click) with the mouse over the textbox, the small frame disappears and the textbox
is in the correct displaying mode ( without background )

My question : How can i provoke programmaticly a "mouse over a control" ?
I tried already :
UpdateWindow();
Invalidate();
RedrawWindow();

but no effect, only if i pass the mouse over it D'Oh! | :doh:


Thanks a lot Smile | :)
QuestionRe: Mouse over control Pin
prasad_som26-Feb-07 1:20
prasad_som26-Feb-07 1:20 
AnswerRe: Mouse over control Pin
baerten26-Feb-07 1:52
baerten26-Feb-07 1:52 
AnswerRe: Mouse over control Pin
James R. Twine26-Feb-07 1:29
James R. Twine26-Feb-07 1:29 
GeneralRe: Mouse over control Pin
baerten26-Feb-07 1:54
baerten26-Feb-07 1:54 
GeneralRe: Mouse over control Pin
James R. Twine26-Feb-07 2:11
James R. Twine26-Feb-07 2:11 
AnswerRe: Mouse over control Pin
baerten8-Mar-07 21:23
baerten8-Mar-07 21:23 
QuestionGetting IP Address Pin
Vichitram26-Feb-07 0:03
Vichitram26-Feb-07 0:03 
AnswerRe: Getting IP Address Pin
Nibu babu thomas26-Feb-07 0:25
Nibu babu thomas26-Feb-07 0:25 
AnswerRe: Getting IP Address Pin
Mark Salsbery26-Feb-07 7:49
Mark Salsbery26-Feb-07 7:49 
AnswerRe: Getting IP Address Pin
ThatsAlok26-Feb-07 18:12
ThatsAlok26-Feb-07 18:12 
Questionmenu item font Pin
Sunshine Always25-Feb-07 23:29
Sunshine Always25-Feb-07 23:29 
AnswerRe: menu item font Pin
Hamid_RT26-Feb-07 7:34
Hamid_RT26-Feb-07 7:34 
QuestionThere has a MFC Ctrl like Dreamweaver 's panel ctrl? Pin
matakk25-Feb-07 22:35
matakk25-Feb-07 22:35 
AnswerRe: There has a MFC Ctrl like Dreamweaver 's panel ctrl? Pin
Hamid_RT26-Feb-07 7:45
Hamid_RT26-Feb-07 7:45 
GeneralRe: There has a MFC Ctrl like Dreamweaver 's panel ctrl? Pin
matakk26-Feb-07 18:19
matakk26-Feb-07 18:19 
GeneralRe: There has a MFC Ctrl like Dreamweaver 's panel ctrl? Pin
Hamid_RT27-Feb-07 1:02
Hamid_RT27-Feb-07 1:02 
GeneralRe: There has a MFC Ctrl like Dreamweaver 's panel ctrl? Pin
matakk27-Feb-07 22:57
matakk27-Feb-07 22:57 

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.