The axtiveX I used was "Microsoft Forms 2.0 OptionButton", and I created it in the MFC application.... But in the Resource.h file the activeX control has the id which is not 0.
pantao551
Posts
-
How can I get the ID of an activex control that the keyboard foucs staying at? -
How can I get the ID of an activex control that the keyboard foucs staying at?There are some activeX controls on my dialog, and I want to get the ID of the activeX control that has the keyboard focus. I use the function: GetWindowsLong(::GetFocus(), GWL_ID), But the return value is always 0. I put the fuction GetLastErr() after it, but the return value is ERORR_SUCCESS. Did I use the wrong fuction? And is there any other way to get the Id? Thanks!
-
A question about the radio buttonThe key board is not standard. It has only number keys and moving keys like -> <- up down and enter. It does not have tab and system keys. I think I should ask my question like this: ^-^ Is there any way to make the controls of the dialog like radio button or check box highlighted when the focus of the keyboard is staying at them? Once again, my computer has no mouse. Thanks! -- modified at 5:21 Tuesday 14th March, 2006
-
A question about the radio buttonMy program will run on a computer without mouse. So it is very important to make everything obvious, Especially the focus of the keyboard. When I use the radio button, especially when the radio button is more than 10 in a dialog, it is difficult to find the focus.
-
A question about the radio buttonIs there any method to make the focus more obvious when it is staying at a radio button? Because a very thin black dash squre line is not easy to find, especially when there are many radio button in the dialog. Thanks!
-
A questionWhat I wanted was moving the focus of my keyboard to another place as soon as the number of charactors in the editbox reaches 3. And I think what you told me can solve my problem. Thanks a lot!
-
A questionThanks a lot!
-
A questionHow can I make a message when the number of charactors in the editbox reaches 3? Thanks!
-
What can I do if I want the CEdit box only receive the numbers?Thanks a lot!
-
What can I do if I want the CEdit box only receive the numbers?I want my CEdit box only receive the number 0-9. And if other keys were pushed down, it will not be displayed in the CEdit box. What can I do? I looked up in the MSDN, But I didn't find any method.
-
How can I shutdown my computer in my VC++ program?Thanks!
-
How to make my program run when my computer boots.Thanks
-
It seems that the MSComm can only transfer 40 bytes each time.I use the activeX MSComm in my program. But when I send more than 40 bytes data, It will have the assert problem. In the OnComm() function, I found that it can only loop 40 times when Getting the element. But in the release mode, it seems to be OK. However, I can not use the release mode, because other parts of my program have to debug when programming. Have you ever met this problem? How did you solve it? Thanks!
-
How to access the I/O port under Windows2000I know that in Windows95, we use the function _outp and _inp to access the I/O port. But they can't be used in Windows2000. What can I do? Should I have to use some software to develop a driver? :confused:
-
How can I set the focus to an specific item?Thanks! I tried the method you told me, And it did work in the dialog. But when I tried this in a fromview, which contains the item I want to set the keyboard focus at, it didn't work. Because the OnInitialUpdate() function in the CFormView class doesn't have a return value. What can I do in this case? Thanks!
-
How can I set the focus to an specific item?:) I have just asked a question the day before yesterday, And thanks to Alok and Jörgen Sigvardsson who gave me nice ways to solve my last question. Now I have got a new question to ask. Can I set the keyboard focus on a radio button when the dialog pop up? I use GetDlgItem(IDC_RADIO1)->SetFocus(); in the OnInitDialog(). But it didn't work. //IDC_RADIO1 is the ID of the radio button in the dialog //where I wish the keyboard focus to stay at when the dialog pop up Thanks!
-
How can I get the ID of the dialog item which own the focus?:confused: My program can not use the mouse, And all the operation will be done by the keyboard. But I do not know how to get the ID number of the item which has the keyboard focus. Thanks!