|
PJ's answer is 100% right if you are using an application someone wrote (and I wish I'd replied that pithily). Or you could ask on a forum dedicated to ThatAppOverThere(tm). You wouldn't come to this forum asking how to press save in notepad?
If you are writing this application, then you need to look at Accelerators (do a search in your msdn docs)
Iain.
|
|
|
|
|
I m using it in Edit box control,But its not working its not select all data and its gives an beep when i use it.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
You should read what Iain wrote. The Ctrl-A combination is not built into the Edit Control.
|
|
|
|
|
Hi,
I am working on mfc and in my application i have a requirement to fire the handler which i have made for a button click event from within the code without clicking the button.
I need the button click handler to be called from my code.
please help me.
Thanks In Advance
|
|
|
|
|
Dhiraj kumar Saini wrote: I need the button click handler to be called from my code.
So call 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
[My articles]
|
|
|
|
|
how to call it should i use SendMessage and pass my own created WindowMessage
|
|
|
|
|
If you want to click it yourself without click on the button yes you can use of SendMessage.
|
|
|
|
|
Double click on button on the form.
|
|
|
|
|
If you are working with MFC you can just create the function of the OnButtonClick using the Wizard (if you are not so self confident to make it by yourself) and then just call the function where you want, when you want.
For example:
in your view/dialog header
public:
enum { IDD = IDD_MY_VIEW};
CButton m_cbTest;
.
.
afx_msg void OnBTestClick();
DECLARE_MESSAGE_MAP()
and in your code file
void CYourView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
DDX_Control(pDX, IDC_BTEST, m_cbTest);
}
BEGIN_MESSAGE_MAP(CYourView, CFormView)
ON_BN_CLICKED(IDC_BTEST, OnBTestClick)
END_MESSAGE_MAP()
and after...
void CYourView::OnBTestClick()
{
your code...
}
and then you can call the OnBTestClick when you want
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hi all,
I'd like to know if it would supose some optimization to use /OPT:WIN98 setting in Visual Studio 2005 / 2008 with XP / Vista as target operating system.
Thanks.
|
|
|
|
|
Very less people run Windows 98, so give them a separate build with /OPT:WIN98 linker option.
Otherwise, always build with /OPT:NOWIN98.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Yes I agree, but my question was, if still would be useful to make code 4K aligned? It makes some improvement to run aligned code in XP or Vista? or depends on fat32 / NTFS?
Thanks for replying.
|
|
|
|
|
You just lose a few bytes in your executable size, that's it.
|
|
|
|
|
so, there's NO benefit in run time execution?
|
|
|
|
|
I played with this linker option some time ago, I couldn't see any difference in performance. This may be different for your code, just try it.
|
|
|
|
|
|
Actually i have build a small software. I want to make a setup file with all component file. I dont want to copy component file manually. Can any one HELP me to build SETUP file.
|
|
|
|
|
|
You can use
1. Inno Setup
2. Nullsoft installer
3. Installschield
you just google for this and you will get information on that.
Inno Setup/NullSoft installer are freewares and popular.
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
|
Hello,
I need to create ISAPI filter, but can't find its template in VS2005 C++ templates can I add it by any means or I have to get back to VC++ 6?
|
|
|
|
|
There is one in my VS2005 Professional
VC++/ATL/ATL Server Project
led mike
|
|
|
|
|
I saw a driver of a cdrom, witch simply transmit IRP_MJ_READ io request to default driver present by the os(calling IofCallDriver). but now, when an io request(IRP_MJ_READ) came, how the driver holds the read data?
I am sure the driver has done some tricks on the read data before returning the data to user application.
Regards,
|
|
|
|
|
If the driver is building its own IRP with IRP_MJ_CREATE before passing it to the lower driver, then that driver has surely supplied a local buffer to the lower driver when calling IoCallDriver. When the IRP returns, then the driver can access the read data through its supplied buffer. Is that what you mean?
|
|
|
|
|
This is a cdrom driver which was installed for the highest driver over the default one present by the os. In the driver, most of the IRP routine is just simply call IofCallDriver to transmit the IO request to lower driver. my question is that, the driver hasn't constructed a new irp before calling IofCallDriver.
The driver mainly perform decryption ops of the content of the discs. No matter you use a normal user mode app to read discs via ReadFile or just simply use windows Ctrl+C and Ctrl+V to copy and paste any file in the disc, the data read from the disc already is decrypted data.
So, i think the driver might use some special tricks to hold the data read by lower default driver and decrypted it just before the data would be returned to the user mode space. but the problem is, i am not a professional driver programmer but only know little about driver programming.
|
|
|
|