Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Read serial port at high baud rate Pin
KarstenK22-Nov-07 20:38
mveKarstenK22-Nov-07 20:38 
AnswerRe: Read serial port at high baud rate Pin
kakan22-Nov-07 21:30
professionalkakan22-Nov-07 21:30 
AnswerRe: Read serial port at high baud rate Pin
Roger Stoltz22-Nov-07 22:03
Roger Stoltz22-Nov-07 22:03 
GeneralRe: Read serial port at high baud rate Pin
Guo_yt25-Nov-07 0:29
Guo_yt25-Nov-07 0:29 
QuestionTabbing Order in Dialogs Pin
Bram van Kampen22-Nov-07 15:50
Bram van Kampen22-Nov-07 15:50 
AnswerRe: Tabbing Order in Dialogs [modified] Pin
Nibu babu thomas22-Nov-07 16:13
Nibu babu thomas22-Nov-07 16:13 
GeneralRe: Tabbing Order in Dialogs Pin
Bram van Kampen22-Nov-07 16:53
Bram van Kampen22-Nov-07 16:53 
GeneralRe: Tabbing Order in Dialogs Pin
Nibu babu thomas22-Nov-07 17:33
Nibu babu thomas22-Nov-07 17:33 
Bram van Kampen wrote:
Could you give a Minuscule Example of what and where,


Sure!

Follow these steps...


  1. Add two buttons to a fresh dialog in a sequencial order, IDC_BUTTON1 and IDC_BUTTON2
  2. Goto OnInitDialog(you are not restricted to OnInitDialog, you can also do this on a button click) and paste this line of code
    GetDlgItem( IDC_BUTTON1 )->SetWindowPos( GetDlgItem( IDC_BUTTON2 ), 
    0, 0, 0, 0, 
    SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE );
  3. So now run the dialog and you will see that the focus is on the second button i.e. IDC_BUTTON2, I am invoking SetWindowPos on IDC_BUTTON1 and hwndInsertAfter is IDC_BUTTON2 hence IDC_BUTTON1 is moved down in the ZOrder after IDC_BUTTON2.


So this is how we dynamically change the Z-Order or tab order.


Nibu thomas
Microsoft MVP for VC++


Code must be written to be read, not by the compiler, but by another human being.

Programming Blog: http:\\nibuthomas.wordpress.com

GeneralRe: Tabbing Order in Dialogs Pin
Bram van Kampen23-Nov-07 1:15
Bram van Kampen23-Nov-07 1:15 
GeneralRe: Tabbing Order in Dialogs Pin
Hamid_RT22-Nov-07 19:42
Hamid_RT22-Nov-07 19:42 
GeneralRe: Tabbing Order in Dialogs Pin
Bram van Kampen23-Nov-07 21:46
Bram van Kampen23-Nov-07 21:46 
GeneralRe: Tabbing Order in Dialogs Pin
Hamid_RT26-Nov-07 19:24
Hamid_RT26-Nov-07 19:24 
AnswerRe: Tabbing Order in Dialogs... Resolved Pin
Bram van Kampen30-Nov-07 14:57
Bram van Kampen30-Nov-07 14:57 
QuestionWin32 / MFC mixing TRUE / BST_CHECK for SetCheck function Pin
xanagan66622-Nov-07 14:17
xanagan66622-Nov-07 14:17 
AnswerRe: Win32 / MFC mixing TRUE / BST_CHECK for SetCheck function Pin
Hamid_RT22-Nov-07 19:42
Hamid_RT22-Nov-07 19:42 
GeneralRe: Win32 / MFC mixing TRUE / BST_CHECK for SetCheck function Pin
xanagan66622-Nov-07 20:51
xanagan66622-Nov-07 20:51 
GeneralRe: Win32 / MFC mixing TRUE / BST_CHECK for SetCheck function Pin
ovidiucucu22-Nov-07 21:51
ovidiucucu22-Nov-07 21:51 
GeneralRe: Win32 / MFC mixing TRUE / BST_CHECK for SetCheck function Pin
CPallini22-Nov-07 22:12
mveCPallini22-Nov-07 22:12 
AnswerRe: Win32 / MFC mixing TRUE / BST_CHECK for SetCheck function Pin
CPallini22-Nov-07 22:05
mveCPallini22-Nov-07 22:05 
AnswerRe: Win32 / MFC mixing TRUE / BST_CHECK for SetCheck function Pin
xanagan66622-Nov-07 23:09
xanagan66622-Nov-07 23:09 
Questionsend mouse click, drag, release to another app Pin
high22-Nov-07 11:06
high22-Nov-07 11:06 
AnswerRe: send mouse click, drag, release to another app Pin
Mark Salsbery22-Nov-07 15:05
Mark Salsbery22-Nov-07 15:05 
GeneralRe: send mouse click, drag, release to another app Pin
high22-Nov-07 17:39
high22-Nov-07 17:39 
Questionseed how to read all files of *.txt in a directory Pin
mrby12322-Nov-07 10:19
mrby12322-Nov-07 10:19 
AnswerRe: seed how to read all files of *.txt in a directory Pin
Luc Pattyn22-Nov-07 11:00
sitebuilderLuc Pattyn22-Nov-07 11:00 

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.