Click here to Skip to main content
15,925,895 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: focus window Pin
prasad_som20-Feb-07 23:11
prasad_som20-Feb-07 23:11 
GeneralRe: focus window Pin
rushiraj.jhala20-Feb-07 23:15
rushiraj.jhala20-Feb-07 23:15 
AnswerRe: focus window Pin
prasad_som20-Feb-07 23:19
prasad_som20-Feb-07 23:19 
GeneralRe: focus window Pin
rushiraj.jhala20-Feb-07 23:25
rushiraj.jhala20-Feb-07 23:25 
AnswerRe: focus window Pin
prasad_som20-Feb-07 23:51
prasad_som20-Feb-07 23:51 
GeneralRe: focus window Pin
rushiraj.jhala20-Feb-07 23:59
rushiraj.jhala20-Feb-07 23:59 
GeneralRe: focus window Pin
prasad_som21-Feb-07 1:28
prasad_som21-Feb-07 1:28 
GeneralRe: focus window Pin
prasad_som21-Feb-07 1:47
prasad_som21-Feb-07 1:47 
Dear, Dear,
I understand the problem now.
Refer your original code,
You are comparing window with focus with parent window of view, which will be child frame.
You need to modify your original code to this,
int CImageView::OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message)
{
if((*GetFocus())!= (*this))
SetFocus()->RedrawWindow();
return CWnd::OnMouseActivate(pDesktopWnd, nHitTest, message);
}



GeneralRe: focus window Pin
rushiraj.jhala21-Feb-07 2:38
rushiraj.jhala21-Feb-07 2:38 
AnswerRe: focus window Pin
toxcct20-Feb-07 22:54
toxcct20-Feb-07 22:54 
GeneralRe: focus window Pin
rushiraj.jhala20-Feb-07 23:05
rushiraj.jhala20-Feb-07 23:05 
Question"how to add Html help " Pin
harsh_296120-Feb-07 22:35
harsh_296120-Feb-07 22:35 
AnswerRe: how to add Html help Pin
Hamid_RT20-Feb-07 23:46
Hamid_RT20-Feb-07 23:46 
AnswerRe: "how to add Html help " Pin
Mark Salsbery21-Feb-07 8:36
Mark Salsbery21-Feb-07 8:36 
Question"Changing Statusbar color " Pin
harsh_296120-Feb-07 22:30
harsh_296120-Feb-07 22:30 
AnswerRe: "Changing Statusbar color " Pin
ThatsAlok21-Feb-07 6:02
ThatsAlok21-Feb-07 6:02 
QuestionHow to block a user shutdown or logoff? Pin
ShaluMalu20-Feb-07 22:27
ShaluMalu20-Feb-07 22:27 
AnswerRe: How to block a user shutdown or logoff? Pin
prasad_som20-Feb-07 22:35
prasad_som20-Feb-07 22:35 
AnswerRe: How to block a user shutdown or logoff? Pin
Naveen20-Feb-07 22:39
Naveen20-Feb-07 22:39 
AnswerRe: How to block a user shutdown or logoff? Pin
ThatsAlok21-Feb-07 6:03
ThatsAlok21-Feb-07 6:03 
Questionclicking button programmatically using SendDlgItemMessage() Pin
rp_suman20-Feb-07 21:43
rp_suman20-Feb-07 21:43 
AnswerRe: clicking button programmatically using SendDlgItemMessage() Pin
prasad_som20-Feb-07 22:21
prasad_som20-Feb-07 22:21 
GeneralRe: clicking button programmatically using SendDlgItemMessage() Pin
ThatsAlok21-Feb-07 6:04
ThatsAlok21-Feb-07 6:04 
AnswerRe: clicking button programmatically using SendDlgItemMessage() Pin
prasad_som21-Feb-07 17:03
prasad_som21-Feb-07 17:03 
GeneralRe: clicking button programmatically using SendDlgItemMessage() Pin
ThatsAlok21-Feb-07 18:45
ThatsAlok21-Feb-07 18:45 

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.