Click here to Skip to main content
15,911,139 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalimage subtraction Pin
htv221-Aug-05 20:44
htv221-Aug-05 20:44 
GeneralRe: image subtraction Pin
johny_d2-Aug-05 1:26
johny_d2-Aug-05 1:26 
Generalreset dialog box Pin
Member 20725781-Aug-05 19:29
Member 20725781-Aug-05 19:29 
GeneralRe: reset dialog box Pin
aarontan1-Aug-05 19:35
aarontan1-Aug-05 19:35 
GeneralRe: reset dialog box Pin
Marc Soleda1-Aug-05 21:58
Marc Soleda1-Aug-05 21:58 
GeneralRe: reset dialog box Pin
BlackDice2-Aug-05 2:16
BlackDice2-Aug-05 2:16 
GeneralRe: reset dialog box Pin
David Crow2-Aug-05 4:13
David Crow2-Aug-05 4:13 
Generalmaintain focus in edit box Pin
aarontan1-Aug-05 19:04
aarontan1-Aug-05 19:04 
How do i maintain the focus in a edit box? For example i was typing half-way in the edit box, however an event occur and the focus got changed. How do i set the focus to remain in the edit box.

This is wat i tried to do when the event occurs
<br />
if(m_alarmOn==false)<br />
{	<br />
  m_alarmOn= true;<br />
  <br />
  CWnd* prev = this->SetFocus();<br />
  prev->SetFocus();<br />
<br />
  CreateThread(0,NULL,CSecurityDlg::playSound,this,0,0);<br />
}<br />
<br />


The above code reside in a OnBtnClick function. So when alarm is on, the button will be auto click....and the alarm sound goes off....
But in the process of these, i might be typing in a editbox. So i will lose the focus...How do i get it to stay?

Cry | :((

Aaron
GeneralRe: maintain focus in edit box Pin
Eytukan1-Aug-05 22:29
Eytukan1-Aug-05 22:29 
GeneralRe: maintain focus in edit box Pin
aarontan2-Aug-05 17:00
aarontan2-Aug-05 17:00 
Questionheader files? Pin
Member 20725781-Aug-05 18:18
Member 20725781-Aug-05 18:18 
AnswerRe: header files? Pin
Blake V. Miller1-Aug-05 18:24
Blake V. Miller1-Aug-05 18:24 
GeneralRe: header files? Pin
Member 20725781-Aug-05 18:42
Member 20725781-Aug-05 18:42 
GeneralRe: header files? Pin
adam syria18-Oct-09 10:59
adam syria18-Oct-09 10:59 
GeneralRe: header files? Pin
Hans Dietrich18-Oct-09 11:30
mentorHans Dietrich18-Oct-09 11:30 
Generalhelp!About change packet data on ndis or spi Pin
riynivke1-Aug-05 16:33
riynivke1-Aug-05 16:33 
GeneralDDE in longhorn Pin
ppp0011-Aug-05 16:25
ppp0011-Aug-05 16:25 
QuestionHow to pass a Structure to CreateProcess as CommnadLine parameter? Pin
ginee1-Aug-05 16:19
ginee1-Aug-05 16:19 
AnswerRe: How to pass a Structure to CreateProcess as CommnadLine parameter? Pin
Rick York1-Aug-05 16:30
mveRick York1-Aug-05 16:30 
GeneralRe: How to pass a Structure to CreateProcess as CommnadLine parameter? Pin
Christian Graus1-Aug-05 16:32
protectorChristian Graus1-Aug-05 16:32 
GeneralRe: How to pass a Structure to CreateProcess as CommnadLine parameter? Pin
Rick York1-Aug-05 17:55
mveRick York1-Aug-05 17:55 
GeneralRe: How to pass a Structure to CreateProcess as CommnadLine parameter? Pin
Blake V. Miller1-Aug-05 18:25
Blake V. Miller1-Aug-05 18:25 
AnswerRe: How to pass a Structure to CreateProcess as CommnadLine parameter? Pin
Christian Graus1-Aug-05 16:31
protectorChristian Graus1-Aug-05 16:31 
AnswerRe: How to pass a Structure to CreateProcess as CommnadLine parameter? Pin
Blake V. Miller1-Aug-05 18:28
Blake V. Miller1-Aug-05 18:28 
Generalobjects scripting Pin
quistiun1-Aug-05 16:14
quistiun1-Aug-05 16:14 

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.