Click here to Skip to main content
15,910,886 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unresolved Externals Pin
#realJSOP29-Apr-07 23:48
professional#realJSOP29-Apr-07 23:48 
QuestionBrightness control for MFC 203 Pin
YUANGE29-Apr-07 3:05
YUANGE29-Apr-07 3:05 
AnswerRe: Brightness control for MFC 203 Pin
Hamid_RT29-Apr-07 18:51
Hamid_RT29-Apr-07 18:51 
QuestionPlaySound (MFC) Pin
YUANGE29-Apr-07 1:58
YUANGE29-Apr-07 1:58 
AnswerRe: PlaySound (MFC) Pin
Mark Salsbery29-Apr-07 8:13
Mark Salsbery29-Apr-07 8:13 
QuestionRegistering a PKCS#12 file Pin
Andy H29-Apr-07 0:23
Andy H29-Apr-07 0:23 
AnswerRe: Registering a PKCS#12 file Pin
cmk29-Apr-07 0:50
cmk29-Apr-07 0:50 
Questionnavigate a dialog using up and down arrows and not tab... Pin
Joan M29-Apr-07 0:19
professionalJoan M29-Apr-07 0:19 
Yes, I know that this is not standard, but the keyboard of the computer in which the program will run has no tab key... Dead | X|

OK, I'm using the PreTranslateMessage and doing this:

if (pMsg->wParam == VK_UP)
{
GetNextDlgTabItem(this->GetFocus(),TRUE)->SetFocus();
return FALSE;
}
if (pMsg->wParam == VK_DOWN)
{
GetNextDlgTabItem(this->GetFocus(),FALSE)->SetFocus();
return FALSE;
}

and it works except for a little detail:

if you put the focus on a button using tab it gains the blue border (typical in WinXP) and when you leave a button using tab it loses that blue border.

When I place the focus on a button using any of the cursor keys (VK_UP or VK_DOWN) the blue border appears, but when I leave that button the blue border continue being there.

Any idea on why do this happens?

As always thank you in advance...
AnswerRe: navigate a dialog using up and down arrows and not tab... Pin
GuyM29-Apr-07 1:03
GuyM29-Apr-07 1:03 
GeneralRe: navigate a dialog using up and down arrows and not tab... Pin
Joan M29-Apr-07 1:06
professionalJoan M29-Apr-07 1:06 
QuestionHow to change the background color of a button? Pin
eli1502197928-Apr-07 23:56
eli1502197928-Apr-07 23:56 
QuestionRe: How to change the background color of a button? [modified] Pin
Doc Lobster29-Apr-07 0:20
Doc Lobster29-Apr-07 0:20 
AnswerRe: How to change the background color of a button? Pin
eli1502197929-Apr-07 1:08
eli1502197929-Apr-07 1:08 
AnswerRe: How to change the background color of a button? Pin
Joan M29-Apr-07 1:04
professionalJoan M29-Apr-07 1:04 
GeneralRe: How to change the background color of a button? Pin
eli1502197929-Apr-07 1:16
eli1502197929-Apr-07 1:16 
GeneralRe: How to change the background color of a button? Pin
Joan M29-Apr-07 1:24
professionalJoan M29-Apr-07 1:24 
AnswerRe: How to change the background color of a button? Pin
Michael Dunn29-Apr-07 21:00
sitebuilderMichael Dunn29-Apr-07 21:00 
QuestionHow to Understand the macro ON_ONCTROL_RANGE Pin
cnhnyu28-Apr-07 23:53
cnhnyu28-Apr-07 23:53 
AnswerRe: How to Understand the macro ON_ONCTROL_RANGE Pin
Michael Dunn29-Apr-07 21:03
sitebuilderMichael Dunn29-Apr-07 21:03 
GeneralRe: How to Understand the macro ON_ONCTROL_RANGE Pin
cnhnyu1-May-07 18:23
cnhnyu1-May-07 18:23 
QuestionA difficult decision, C programming Pin
C_Zealot28-Apr-07 22:58
C_Zealot28-Apr-07 22:58 
AnswerRe: A difficult decision, C programming Pin
Arun.Immanuel28-Apr-07 23:45
Arun.Immanuel28-Apr-07 23:45 
GeneralRe: A difficult decision, C programming Pin
C_Zealot28-Apr-07 23:52
C_Zealot28-Apr-07 23:52 
GeneralRe: A difficult decision, C programming Pin
Arun.Immanuel29-Apr-07 0:05
Arun.Immanuel29-Apr-07 0:05 
GeneralRe: A difficult decision, C programming Pin
C_Zealot29-Apr-07 0:08
C_Zealot29-Apr-07 0:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.