Click here to Skip to main content
15,910,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How make a smart reference expose methods of basetype ? Pin
prasad_som21-Feb-07 1:12
prasad_som21-Feb-07 1:12 
Questionfocus window Pin
rushiraj.jhala20-Feb-07 22:46
rushiraj.jhala20-Feb-07 22:46 
AnswerRe: focus window Pin
prasad_som20-Feb-07 22:53
prasad_som20-Feb-07 22:53 
GeneralRe: focus window Pin
rushiraj.jhala20-Feb-07 23:04
rushiraj.jhala20-Feb-07 23:04 
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 
int CImageView::OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message)
{
int status = CView::OnMouseActivate(pDesktopWnd, nHitTest, message);
if((*GetFocus())!=(*GetParent()))
GetParentFrame()->SetFocus()->RedrawWindow();
return status;
}

I have one Doc/view applivation in that i have one other dialog box also.
so when i click inside the view of my chid frame i want to check if this chid has foucs or not because if this frame has allready focus i dont need to redraw window other wise if dialog has foucs i have to set foucs the chid frame containing that view and redraw widnow.

for that in onmouseactive i wnat to check child frame is fouced or dialog box has foucs.
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 
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 

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.