|
|
i do not know, how can i check that ? and if it is not being used what should i do?
|
|
|
|
|
Have you got some code in your CMainFrame class that you can a) add some code to, and b) guarantee will be executed application's running?
If so, then add a call to the active view's OnKeyDown handler:
GetActiveView()->OnKeyDown((UINT)'a', 1, 0);
Set a breakpoint on that line. When the breakpoint triggers, repeatedly step into the call (it'll call the GetActiveView() methods first, then step back out, then step into the OnKeyDown handler). When you get to an OnKeyDown handler, you can see what the view type is.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
i got this error when i wrote this in my CMainFrame class:
GetActiveView()->OnKeyDown((UINT)'a', 1, 0);
error C2248: "CWnd::OnKeyDown" Members of a derived class cannot access private members of a base class.
|
|
|
|
|
My fault - didn't realise OnKeyDown was private. Ummm, OK - you need to add (to your view class) an override for a public method of CView. Call that from your CMainFrame. For example, CDocument:
CDocument* CTest_View::GetDocument() const
{
return CEditView::GetDocument();
}
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
i have this code in my Doc.cpp
CTestDoc* CTest_View::GetDocument() const
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTest_Doc)));
return (CTest_Doc*)m_pDocument;
}
it cause a trouble when i add this :
CDocument* CTest_View::GetDocument() const
{
return CEditView::GetDocument();
}
my SDI Application is splitted horizontally to two parts adn i need to get if the Return Key in the upper part being pressed.
|
|
|
|
|
susanne1 wrote: my SDI Application is splitted horizontally to two parts adn i need to get if the Return Key in the upper part being pressed.
There's the salient point - you've got a splitter view between MFC and the view that you want to receive messages.
Where is your splitter created? In the CMainFrame?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
Right, well I think the splitter window's trapping your return key presses - looking at the splitter window's OnKeyDown handler, it has a case for VK_RETURN.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
i do not have OnKeyDown handler, in Test.cpp file i just have
BOOL CTest::PreTranslateMessage(MSG *pMsg)
{
// Do something
}
and in this Function i get the Curosrp position.
|
|
|
|
|
hi!
i want to study examples of mfc based uml diag.I was searching on the web but didnt find any.Kindly tell me some links where i can find exaples to study.
thanx in advance
|
|
|
|
|
B0606115 wrote: i want to study examples of mfc based uml diag
why mfc! they are independent of the language you code in eg:C#,C++,java
you can find some examples on Google[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
What do you mean exactly ? You want to learn UML or you want to create a MFC dialog that lets the user draw some UML diagram ?
As already posted, UML is independant of the fact that you are using MFC (or even that you code in C++).
|
|
|
|
|
Did you notice? The level of dross posts are extremely high today.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: Did you notice? The level of dross posts are extremely high today.
because people like me are on forum
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
B0606115 wrote: hi!
i want to study examples of mfc based uml diag.I was searching on the web but didnt find any.Kindly tell me some links where i can find exaples to study.
thanx in advance
you want to create MFC program based on UML diagram, if i am correct, then you have to learn C++.!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi all,
I m usnig VS-2008,i m seting the property UAC Execution Level as "requireAdministrator".
Thats why when i run my application its popup a window to allow or cancel the access.
I m open my application at startup time with setting registry values.
but When UAC is enabled,and start the computer the application not start and a message popup in system tray
Like this::"Windows has blocked some startup program."
so please tell me how can i execute my application at startup with same settings of UAC Execution Level as "requireAdministrator"
please help me thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
I want to automate my mobile (Samsung SGH-X660)connected to my PC by a data cable. I want to get the sms to my PC that my mobile receive. How it is possible?
|
|
|
|
|
Check this AT Commands[^]. Use hyperterminal to test these AT Commands. I hope it helps.
Regards,
Sandip.
|
|
|
|
|
SandipG wrote: Check this AT Commands[^]. Use hyperterminal to test these AT Commands
AT command is usefull only when you have list AT command set for hardware.
also, AT command is hardware dependent! and i doubt samsung will share it at command set with public!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok i doubt samsung will share it at command set with public!
I worked with Nokia handset and Nokia shares the At Commands set.
ThatsAlok AT command is usefull only when you have list AT command set for hardware.
also, AT command is hardware dependent!
Yes. But i think common AT Commands would be same.
If you monitor PC Suite softwares those come with mobiles i have seen them communicating using AT commands.
Regards,
Sandip.
|
|
|
|
|
SandipG wrote: I worked with Nokia handset and Nokia shares the At Commands set.
I have worked with AVL Hardware ( Pollution Meter, Oil Meter etc) and horiba Hardware. they provide you manual of AT command for programmaticaly controling there hardware and no two command is similiar except turning on and off command.
SandipG wrote: Yes. But i think common AT Commands would be same.
If you monitor PC Suite softwares those come with mobiles i have seen them communicating using AT commands.
Thats i need to look into! can you tell me where to look for nokia!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok can you tell me where to look for nokia!
For Nokia see here[^]
Regards,
Sandip.
|
|
|
|
|
Thanks dude! would add that link to my site!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
modified on Friday, May 22, 2009 5:38 AM
|
|
|
|
|
ThatsAlok Thanks dude!
Welcome
Regards,
Sandip.
|
|
|
|