Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Get an exception while opening a file Pin
«_Superman_»24-Nov-09 18:04
professional«_Superman_»24-Nov-09 18:04 
GeneralRe: Get an exception while opening a file Pin
V K 224-Nov-09 18:30
V K 224-Nov-09 18:30 
QuestionRe: Get an exception while opening a file Pin
«_Superman_»24-Nov-09 19:13
professional«_Superman_»24-Nov-09 19:13 
AnswerRe: Get an exception while opening a file Pin
V K 224-Nov-09 23:25
V K 224-Nov-09 23:25 
AnswerRe: Get an exception while opening a file Pin
Michael Schubert25-Nov-09 1:59
Michael Schubert25-Nov-09 1:59 
QuestionI have hooked the WSARecv function and get the packet . But how can i resend it to the program? Pin
reichtiger24-Nov-09 17:24
reichtiger24-Nov-09 17:24 
AnswerRe: I have hooked the WSARecv function and get the packet . But how can i resend it to the program? Pin
Adam Roderick J24-Nov-09 22:07
Adam Roderick J24-Nov-09 22:07 
QuestionPopmenu in View class Pin
Anu_Bala24-Nov-09 17:09
Anu_Bala24-Nov-09 17:09 
Hi,
I created one popup menu and loaded in CFaceplate.cpp(dialog class)
void CFacePlate::OnContextMenu(CWnd* pWnd, CPoint point)
{
// TODO: Add your message handler code here
CMenu mnuPopup;
mnuPopup.LoadMenu(IDR_FPMENU);
CRect rBarRect;
rBarRect.left = rBarRect.top = 0;
rBarRect.right = 1000;rBarRect.bottom = 300;
// Get a pointer to the first item of the menu
CMenu *mnuPopupMenu = mnuPopup.GetSubMenu(0);
ASSERT(mnuPopupMenu);
if( rBarRect.PtInRect(point) )
mnuPopupMenu->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, pWnd);

}
And this IDR_MENU contains four menu.I written code for this menu in CMAinframe as
void CMainFrame::OnUpdateFpgroup(CCmdUI* pCmdUI)
{
((CMainFrame *)AfxGetMainWnd())->SendMessage(WM_COMMAND,ID_GROUPVIEW,NULL);
}
It works fine.
But i used this same concept in CTuningView(View class).I can get the popup menu,but when i press the menu-Fpgroup,it doesnot go to CMainframe fucntion.I checked by placing F9.
Pls help me.

Anu

AnswerRe: Popmenu in View class Pin
JohnCz7-Dec-09 19:26
JohnCz7-Dec-09 19:26 
AnswerRe: Popmenu in View class Pin
JohnCz7-Dec-09 19:52
JohnCz7-Dec-09 19:52 
GeneralRe: Popmenu in View class Pin
shanmugarajaa9-Dec-09 15:56
shanmugarajaa9-Dec-09 15:56 
AnswerRe: Popmenu in View class Pin
JohnCz9-Dec-09 19:08
JohnCz9-Dec-09 19:08 
QuestionProblem with mousewheel Pin
Rozis24-Nov-09 13:02
Rozis24-Nov-09 13:02 
AnswerRe: Problem with mousewheel Pin
«_Superman_»24-Nov-09 13:22
professional«_Superman_»24-Nov-09 13:22 
GeneralRe: Problem with mousewheel [modified] Pin
Rozis25-Nov-09 14:21
Rozis25-Nov-09 14:21 
QuestionHow to ask the user to choose a directory/folder? Pin
Anthony Appleyard24-Nov-09 11:06
Anthony Appleyard24-Nov-09 11:06 
AnswerRe: How to ask the user to choose a directory/folder? Pin
Maximilien24-Nov-09 12:08
Maximilien24-Nov-09 12:08 
QuestionMFC child modal CDialog appears in the task bar. ? Pin
Maximilien24-Nov-09 11:02
Maximilien24-Nov-09 11:02 
AnswerRe: MFC child modal CDialog appears in the task bar. ? Pin
«_Superman_»24-Nov-09 12:49
professional«_Superman_»24-Nov-09 12:49 
GeneralRe: MFC child modal CDialog appears in the task bar. ? Pin
Maximilien26-Nov-09 3:34
Maximilien26-Nov-09 3:34 
Questionwher should be a modeless dialog box be created Pin
Sujay chakraborty24-Nov-09 8:04
Sujay chakraborty24-Nov-09 8:04 
AnswerRe: wher should be a modeless dialog box be created Pin
«_Superman_»24-Nov-09 8:10
professional«_Superman_»24-Nov-09 8:10 
GeneralRe: wher should be a modeless dialog box be created Pin
Sujay chakraborty25-Nov-09 7:11
Sujay chakraborty25-Nov-09 7:11 
GeneralRe: wher should be a modeless dialog box be created Pin
Tim Craig25-Nov-09 9:29
Tim Craig25-Nov-09 9:29 
QuestionRe: wher should be a modeless dialog box be created Pin
Sujay chakraborty30-Nov-09 20:04
Sujay chakraborty30-Nov-09 20:04 

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.