|
This is a little bit unsafe, since if the button doesn't has focus, it won't work unless you explicitly set the focus on the button prior to calling ::SendMessage .
It will cause the button to receive WM_LBUTTONDOWN , WM_LBUTTONUP and the parent of the button to receive a BN_CLICKED notification.
You might want to consider sending a WM_COMMAND message instead to the parent window of the button. In that case the hi-order word of the wParam argument shall contain the notification code, e.g. BN_CLICKED , and the low-order word shall contain the ID of the button.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
|
|
|
|
|
Yet another debate rages over my project...
As a data structure we have a rather large upper triangular matrix[^]. To implement this I am proposing a jagged array of STL vectors. Why? Because we don't need the bottom half of the matrix, ever! Thus we save on memory and get the convenience of the STL vector.
However, a colleague suggests that it would be cleaner (and faster) to access a regular two-dimensional array.
To be honest, I am not sure which is faster, having never seen any access-time comparisons. My main argument is that I think the STL implementation is more convenient.
Can anyone lend any input?
Windows with no internet connection is safe, but that's not what Windows was built for.
|
|
|
|
|
When it boils down to it, a vector IS a random access array. Simply put, the templates of STL add a whole bunch of functions to make dealing with this array easier.
Your colleague is right in a sense, vectors come with added error checking and using iterators can look messy. But why bother coding your own when STL provides you with one?
|
|
|
|
|
Hi,
I HAve A word SEARCH,If I click it should Open a new window.I need what functions to use for hyperlink
Praveena
|
|
|
|
|
Is this related to HTML? If it is VC++, then u handle WM_LBUTTONDOWN OR WM_LBUTTONUP.
Come online at:-
jubinc@skype
|
|
|
|
|
Hi,
How can i create a class for creating Hyperlink in the existing Project.and how to use those Functions.Can u please help in this regard
Praveena
|
|
|
|
|
See if this[^] article helps you.
|
|
|
|
|
|
|
I've just upgraded from Visual C++ 6 to Visual Studio 2005. I saw a new type of GUI designer tool called Windows Forms Application, apart from the old MFC. The former has a lot of features and looks more intuitive than the traditional MFC. However, the codes are loking pretty funnny to me. May I know whats the difference between MFC and WFA, in terms of pros and cons? Thanks.
|
|
|
|
|
The Windows Forms stuff is .net - hence the code looking different
|
|
|
|
|
Hi
I am writing a service which will intern createprocesses(exe's) ..I dont want any one to kill those process manually through task manager .. can any one help on this ?
Regards,
Venkat
|
|
|
|
|
You could try setting the security of your thread to higher than a normal users. But in the case of WinXP ( where most users are administrators ) you have little hope.
Another trick you could try is use a self re-start exe. Have 2 processes running, both monitoring each other, if one is closed, the other will restart it again.
|
|
|
|
|
I think you can find an article on the codeproject about task manager in this article you can see a good info about this object
|
|
|
|
|
In my application:-
1. I am gettting encrypted string from a 3rd party.
2. I am then providing these encrypted keys to my application through a form.
3. I am then decrypt these encrypted strings and use the information.
but the problem is i am not able to decrypt. But all the parameters (keylenght,block size,key) in 3rd party application (which generates the encrypted strings) and my application are same.
But if i decrypt the encrypted string in that 3rd party app, it would decrypt to correct values.
I am using CRijndael class for encryption/decryption.
-vikram
|
|
|
|
|
Without seeing any code it's hard to say. But my first guess is ANSI UNICODE compatibility.
|
|
|
|
|
|
Why would you want to install an application and hide it from the OS/user?
|
|
|
|
|
I don't wanna my application to be hidden. I only want to learn this technologies with some samples.
Do u have any idea on this?
U'r help will be appreciated.
Come online at:-
jubinc@skype
|
|
|
|
|
WalderMort wrote: Why would you want to install an application and hide it from the OS/user?
It seem as if the black hats are recruiting.
There are quite a lot of questions of this kind around.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
jhwurmbach wrote: It seem as if the black hats are recruiting. There are quite a lot of questions of this kind around.
There is hope as long as they ask that kind of questions!
|
|
|
|
|
Hi all,
I have a Embeded VC++ (4.0) application , which builds fine to run on a device having Win CE 4.2 , But when i try to build the same workspace to run on a device having Win CE 3.0. I get a "Platform Manager server failed error".
Do i need to do some configuration settings for the Platform Manager under Tools Menu?
What settings do i need to do?.
Thanks (in advance)
|
|
|
|
|
Hi gurus,
I am about to develop a new project and confused on which type I should use. Since I will NOT handle any file (serialization), I don't need Doc/View support.
In the past, I have always used dialog-based, but I have read comments in this forum regarding "avoid dialog-based, and go with CFormView SDI instead". I don't remember the reasons (but maybe related to serialization support and menu/hotkeys).
Also, I see that disabling Doc/View support means I cannot choose CFormView as my base class for the main view. (And since the main window will have a lot of controls, I don't want to create/arrange them in run time). Should I still go with SDI? Why some people seem really dislike dialog-based approach?
Thanks in advance for any comments/pointers.
|
|
|
|
|
You can use Serialization support in Dialog based applications too. So Serialization is not is selection criteria. First decide what your application is all about, the User entries requirements, etc and then select SDI or Dialog based.
|
|
|
|
|
OK, then what are the selection criterias usually used by others for deciding between SDI vs. dialog based?
My app is an inventory management using database, which I think can be done either way. (CRecordView doesn't fit my need, so CView-derived class is not a plus here).
|
|
|
|