|
blockquote class="FQ"> shir_k wrote: Plz let me know the links for safearray(variant type) to implement in VC++
THE Ultimate Link[^]
|
|
|
|
|
how do i set focus in one of my edit control in property sheet
|
|
|
|
|
You shouldn't use SetFocus in dialogs. See here[^] for details.
Steve
|
|
|
|
|
Assume the ID of your edit control is IDC_EDIT_NAMETAG,
to set the focus do the following:
CWnd* pEditCtrl = GetDlgItem(IDC_EDIT_NAMETAG);
pEditCtrl->SetFocus();
Sunil
|
|
|
|
|
You shouldn't use SetFocus in dialogs. See here[^] for details.
Steve
|
|
|
|
|
GetDlgItem( ID )->SetCapture();
Where ID is the id Of the Edit control
ok.
hiren thakkar
|
|
|
|
|
zakkas2483 wrote: GetDlgItem( ID )->SetCapture();
Purpose of SetCapture() API is different.Did you really mean SetCapture itself?
|
|
|
|
|
Sorry,i was wrong.
code is like that
CEdit* clEdit = (CEdit*)getDlgItem( ID );
clEdit->SetFocus();
sorry again for mistake.
Thanks.
hiren thakkar
|
|
|
|
|
You shouldn't use SetFocus in dialogs. See here[^] for details.
Steve
|
|
|
|
|
Thanks Steve ....Thank You very much
|
|
|
|
|
GotoDlgCtrl( GetDlgItem( IDC_EDIT ));
- NS -
|
|
|
|
|
Is this a trick question? The subject of your post should be a clue.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
If it's a trick question it's a very tricky one -- you shouldn't use SetFocus in dialogs. See here[^] for details.
Steve
|
|
|
|
|
To get more/better behavior than SetFocus() with edit controls,
I would recommend CDialog::GotoDlgCtrl() (MFC) or WM_NEXTDLGCTL (Win32).
(as stated by NS17)
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You shouldn't use SetFocus in dialogs. See here[^] for details.
Steve
|
|
|
|
|
Pls clear my doubt ,
Weather the ITaskScheduler interface is create the schedule task in vista Environment. Pls reply if u know.
Thanks
|
|
|
|
|
NO
It only work on -> Windows XP, Windows 2000 Professional, Windows Me, or Windows 98.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
vicky00000 wrote: Weather the ITaskScheduler interface is create the schedule task in vista Environment.
See here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
How to connect Modem after two rings through RS-232 in MFC
|
|
|
|
|
Your question implies that you dont know much (in what trouble you are).
Working with modem ist really hard work.
I recommand you to learn about it with this article:
http://www.codeproject.com/system/serial.asp
Have a lot of fun
Greetings from Germany
|
|
|
|
|
Mr.KarstenK,
iam already go through that topic that what u are specified to me and i know abt serial communication.but what iam asking is communication b/w system and Modem.
i have to prepare that code in VC++
like when we press the button "connect".it will conncet 2 modem after 2 rings.
thanQ,
kp.
|
|
|
|
|
And where are you stuck exactly ? Do you know the protocol you need to use to communicate with the modem (probably AT commands) ?
|
|
|
|
|
Mr.Moonen,
thanks for reply,
i know all the Hayes AT Commandswhich are the communication protocols through hyperterminal 2 modem.
but iam enable to instantiate a connection to modem in MFC.
how can i start,by inserting an activex control..shall it work
regards,
kp
|
|
|
|
|
krishna Vuppala wrote: how can i start...
I would start by thoroughly reading modem-related articles such as this and this.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi All,
How do i convert LPARAM to CComBstr?
Sunil
|
|
|
|