Click here to Skip to main content
15,908,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralIs there any class can be used as PictureBox Class Pin
jcpooh9-Jun-03 20:11
jcpooh9-Jun-03 20:11 
GeneralRe: Is there any class can be used as PictureBox Class Pin
Daniel Strigl9-Jun-03 22:03
Daniel Strigl9-Jun-03 22:03 
GeneralRe: Is there any class can be used as PictureBox Class Pin
jcpooh9-Jun-03 23:06
jcpooh9-Jun-03 23:06 
GeneralSynchronization - Wait Functions Pin
SNathani9-Jun-03 18:49
SNathani9-Jun-03 18:49 
GeneralRe: Synchronization - Wait Functions Pin
Branislav9-Jun-03 22:48
Branislav9-Jun-03 22:48 
GeneralRe: Synchronization - Wait Functions Pin
basementman10-Jun-03 4:17
basementman10-Jun-03 4:17 
GeneralRe: Synchronization - Wait Functions Pin
SNathani10-Jun-03 5:49
SNathani10-Jun-03 5:49 
GeneralSetFocus from OnInitDialog for Button control. Pin
anju9-Jun-03 18:38
anju9-Jun-03 18:38 
Hi,
I my application(MFC dialog based),initially i have to put the focus on specified button control.

i.e.Suppose my dialog having Three buttons 1.OK,2,Cancel,3.Button1.Initially i have to put focus on Button1, if user clicked Enter key the Button1 message handler will call.

for this i tried like this.

1.CMyTestDlg::OnInitDialog()
{
GetDlgItem(IDC_BUTTON1)->SetFocus();
return FALSE;//Instead of TRUE

}
It showing correctly focus on Button1,But if i pressed enter key OnOK() is calling.

Please help me inthis context.
regards
anju

anju
GeneralRe: SetFocus from OnInitDialog for Button control. Pin
SNathani9-Jun-03 18:56
SNathani9-Jun-03 18:56 
GeneralRe: SetFocus from OnInitDialog for Button control. Pin
anju9-Jun-03 20:21
anju9-Jun-03 20:21 
GeneralRe: SetFocus from OnInitDialog for Button control. Pin
Roger Allen10-Jun-03 0:30
Roger Allen10-Jun-03 0:30 
GeneralRe: SetFocus from OnInitDialog for Button control. Pin
anju10-Jun-03 2:04
anju10-Jun-03 2:04 
GeneralRe: SetFocus from OnInitDialog for Button control. Pin
basementman10-Jun-03 4:20
basementman10-Jun-03 4:20 
GeneralRe: Application Switch Pin
Anonymous9-Jun-03 17:46
Anonymous9-Jun-03 17:46 
GeneralRe: Application Switch Pin
Branislav9-Jun-03 23:12
Branislav9-Jun-03 23:12 
Generaluse wmi without wmi9x.exe on win9x Pin
semysemy819-Jun-03 16:49
semysemy819-Jun-03 16:49 
GeneralRe: use wmi without wmi9x.exe on win9x Pin
Michael Dunn9-Jun-03 19:54
sitebuilderMichael Dunn9-Jun-03 19:54 
QuestionHow to debug this? Pin
PrashantJ9-Jun-03 16:46
PrashantJ9-Jun-03 16:46 
AnswerRe: How to debug this? Pin
Branislav9-Jun-03 23:26
Branislav9-Jun-03 23:26 
GeneralRe: How to debug this? Pin
basementman10-Jun-03 4:21
basementman10-Jun-03 4:21 
GeneralMove the focus witn ENTER Pin
Gagnon Claude9-Jun-03 16:18
Gagnon Claude9-Jun-03 16:18 
GeneralRe: Move the focus witn ENTER Pin
Joan M9-Jun-03 20:10
professionalJoan M9-Jun-03 20:10 
GeneralRe: Move the focus witn ENTER Pin
Branislav9-Jun-03 23:35
Branislav9-Jun-03 23:35 
GeneralRe: Move the focus witn ENTER Pin
Roger Allen10-Jun-03 0:33
Roger Allen10-Jun-03 0:33 
GeneralMatrix Pin
Anonymous9-Jun-03 15:52
Anonymous9-Jun-03 15:52 

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.