|
traelektro wrote: arigatoo
Actually is arigatou.
Good luck again.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
please look at my new post - new message:
" how to calculate mean of histogram?"
tra
|
|
|
|
|
I dont know what you mean by significant number of matrix but you know the function you know the form of matrix then what exactly is the problem?
H = [A B ; C D]
A = Fxx(x, y) (second derivative of F w.r.t x)
B = Fxy(x, y) (derivative of F w.r.t x and then w.r.t y)
C = Fyx(x, y) (derivative of F w.r.t y and then w.r.t x)
D = Fyy(x, y) (second derivative of F w.r.t y)
Now you know the analytical form of F so can't you find the derivatives yourself?
Saurabh
|
|
|
|
|
thank u for ur reply I will read more and more. thx
tra
|
|
|
|
|
My application has a CFrameWnd which contains a CTreeCtrl. So that the user can easily delete an element from the tree I have set up an accelerator so that the Delete key issues an ID_EDIT_DELETE command. So far so good.
The problem comes when I want to do an inline edit of an element in the tree. The delete key is still issuing the ID_EDIT_DELETE command - I can stop it deleting the element by putting a guard set between the TVN_BEGINLABELEDIT and TVN_ENDLABELEDIT events. But this is not a behaviour that I want. I want the delete key to act as normal during the label editing.
Is there any way to temporarily suppress the accelerator keys during label editing?
Graham
Librarians rule, Ook!
|
|
|
|
|
Solved it thanks to a colleague.
I need to override the PreTranslateMessage message in my tree control class (it was already subclassed so that it wasn't a problem) as follows:
BOOL MyTreeCtrl::PreTranslateMessage(MSG* pMsg)
{
if( pMsg->message == WM_KEYDOWN )
{
if( GetEditControl() &&
(pMsg->wParam == VK_RETURN
|| pMsg->wParam == VK_DELETE
|| pMsg->wParam == VK_ESCAPE
|| GetKeyState(VK_CONTROL)))
{
::TranslateMessage(pMsg);
::DispatchMessage(pMsg);
return TRUE;
}
}
return CTreeCtrl::PreTranslateMessage(pMsg);
}
Graham
Librarians rule, Ook!
|
|
|
|
|
Hello all,
I created some interfaces and deployed them in an MFC extension DLL.
I have an example of an exported TreeCtrl which has a memeber that triggers the creation of a modal dialogBar.
first of I created that tree control inside a window of a client program which is linked to that DLL.
First I have seen problems with the drag and drop. infact my tree control has buit in drag and drop feature. That features happens to function only once !
I didn't comprehnd this problem until I tested the modal dialog ofwhich creation is triggered by a member of that imported Tree.(the code of the dialog also resides in the DLL) : it happens that I can't do anything with tyhe Dialog: nothing is responsing : unless I click 3 or 2 times on the taskbar icon of the application.
did anybody encountered and understood this phenomenon ?
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
ok, i tried to make this code awhile ago, and it doesnt work at all, and i was wondering if someone could help me figure it out?? But please, not to sound rude, but for the sake of learning something, try to explain it in the simplest terms you can what was wrong, so I can avoid doing that mistake again
#include <iostream>
#include <iomanip>
using namespace std;
void main()
{
int i,
j,
number;
cout<<setw(40)<<"Multiplication Chart"<<endl<<endl;
cout>>"This is a multiplication Chart"<<endl<<endl
cout<<"please enter a number between 1 and 17 for the table to reach up to. Numbers larger then 17 will NOT work"<<endl;
cin>>number;
for (i=0; i<number; i++)
(
cout<<i<<"I";
for (j=0; j<number; j<+)
cout<<setw(3) i*j;
}
cout<<endl;
}
system ("PAUSE");
}
:I
|
|
|
|
|
Pathetic wrote: it doesnt work at all,
Aside from the syntax errors, what does it do compared to what it's supposed to do?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
uh... can you please rephrase that question, i dont get it...
"The beauty of Grace is that it makes life not fair" Relient K, Be my Escape
|
|
|
|
|
Doesn't look like it should compile either.
|
|
|
|
|
There were a few syntax errors in your program. Besides that, if you were looking to start with a simple multiplication program, I just wrote one for you:
#include <iostream>
void main()
{
int number, limit = 10;
cout<<"Multiplication Chart"<<endl<<endl;
cout<<"please enter a number to view multiplication chart ";
cin>>number;
cout<<endl;
for(int i=1; i<= limit; ++i)
{
cout<<number<<" x "<<i<< " = "<<number*i<<endl;
}
cout<<endl;
}
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
thanks i guess
"The beauty of Grace is that it makes life not fair" Relient K, Be my Escape
|
|
|
|
|
Hi,
I have a List Control in my project.
When the user clicks anywhere outside the listcontrol view (the control loses focus) the item that was selected loses it's selection.
How can I keep this item selected, even if the control loses focus?
I am already using the LVS_SHOWSELALWAYS style.
this is how I create the list control:
CListCtrl cList;
cList.CreateEx(
WS_EX_STATICEDGE | LVS_EX_TWOCLICKACTIVATE | LVS_EX_DOUBLEBUFFER ,
LVS_ICON | LVS_SHOWSELALWAYS | LVS_ALIGNTOP | LVS_OWNERDATA | WS_BORDER | WS_TABSTOP |WS_VISIBLE | LVS_SINGLESEL,
ClientRect, this, IDC_LIST)
Thanks
|
|
|
|
|
Have you tried playing around with those styles to see if the presence of one is possibly negating the effects of LVS_SHOWSELALWAYS ?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
How's business in the Kwik-E-Mart?
|
|
|
|
|
And indeed was a difficult task beating it [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Message Deleting without alid reason is crime
"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 for all
I've bought a simple bluetooth external device(like Asus WL-BTD201 Bluetooth dongle).
I want to create a single program to read it but I haven't any idea what I need to do. Is there a free library that I can use?
I've read something like bluetooth have a stack(???). Things like WIDCOMM stack.
Honestly I have any idea how can I do this. Someone can help.
Thanks for support.
|
|
|
|
|
Read this about Bluetooth at first: http://en.wikipedia.org/wiki/Bluetooth[^]
Bluetooth is a connection technology, so you have a connection to another device. And what THAT can that is interesting for your programming approach.
Have a lot of fun.
Greetings from Germany
|
|
|
|
|
|
Alex Cutovoi wrote: Is there a free library that I can use?
Bluetooth development kit[^] from Broadcom corporation is distributed free of cost.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
AFAIK your Bluetooth dongle should also be using the Widcomm stack. If it uses the Microsoft stack, then you have to use the Microsoft API. I don't know if there are other BT stacks though...
|
|
|
|
|
The OP said Widdcom stack, somewhere in his query. So, I took a guess.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|