Click here to Skip to main content
16,018,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Lock whole screen Pin
baerten21-Jan-08 23:41
baerten21-Jan-08 23:41 
GeneralRe: Lock whole screen Pin
David Crow22-Jan-08 2:53
David Crow22-Jan-08 2:53 
GeneralRe: Lock whole screen Pin
Don Box21-Jan-08 23:05
Don Box21-Jan-08 23:05 
GeneralRe: Lock whole screen Pin
baerten21-Jan-08 23:09
baerten21-Jan-08 23:09 
GeneralRe: Lock whole screen Pin
Don Box21-Jan-08 23:13
Don Box21-Jan-08 23:13 
GeneralRe: Lock whole screen Pin
Rajesh R Subramanian21-Jan-08 23:22
professionalRajesh R Subramanian21-Jan-08 23:22 
GeneralRe: Lock whole screen Pin
Don Box21-Jan-08 23:26
Don Box21-Jan-08 23:26 
GeneralRe: Lock whole screen Pin
baerten21-Jan-08 23:38
baerten21-Jan-08 23:38 
I explained it to Iain Clarke:

Yes, normally it's the correct way to do this

But i need to step out the DoModal() (return to the function which calls the DoModal())
I created a Wrapper-Control which is called as the same way in windows-logic as in DOS-Console-logic

and in dos i have the following:

while(stop != 1) {
  Grid.Execute(); //-> does the DoModal() and quits this function via the OnOK()
  switch(Grid.PressedKey) {
    case KEY_ESC: stop = 1; break;
    case KEY_ENTER: /*traitement*/ stop = 1; break;
  };
}



I need to do this, because i reconstruct a DOS-Console Project into MFC
And both source-codes still exists (the DOS-Application should still exist after the MFC Application is ready)
So i need a source-code which can be traited in each logics
Because to adapt some 100000 lines of code isn't so cool

This "amphibian" source-code works, but i try to get it more beautiful


Thanks anyway for your answer 



It's only the way to reuse the DOS-SourceCode and not to recode all the sourcecode in a Windows-logic
Otherway i made it naturally in your given way. Wink | ;)

Because it's not so easy to my to create MFC-controls which works like a "DOS-Console-Control"
GeneralRe: Lock whole screen Pin
Rajesh R Subramanian21-Jan-08 23:43
professionalRajesh R Subramanian21-Jan-08 23:43 
GeneralRe: Lock whole screen Pin
baerten21-Jan-08 23:48
baerten21-Jan-08 23:48 
GeneralRe: Lock whole screen Pin
Don Box21-Jan-08 23:53
Don Box21-Jan-08 23:53 
GeneralRe: Lock whole screen Pin
baerten22-Jan-08 0:10
baerten22-Jan-08 0:10 
GeneralRe: Lock whole screen Pin
Don Box22-Jan-08 0:22
Don Box22-Jan-08 0:22 
GeneralRe: Lock whole screen Pin
baerten22-Jan-08 0:39
baerten22-Jan-08 0:39 
GeneralPlz Help me Pin
sharanu21-Jan-08 22:07
sharanu21-Jan-08 22:07 
GeneralRe: Plz Help me Pin
Don Box21-Jan-08 22:19
Don Box21-Jan-08 22:19 
GeneralRe: Plz Help me Pin
Cedric Moonen21-Jan-08 22:21
Cedric Moonen21-Jan-08 22:21 
GeneralRe: Plz Help me Pin
CPallini21-Jan-08 22:26
mveCPallini21-Jan-08 22:26 
GeneralNeed help on MFC CListCtrl -- Pin
sarat21-Jan-08 22:06
sarat21-Jan-08 22:06 
GeneralRe: Need help on MFC CListCtrl -- Pin
Don Box21-Jan-08 22:31
Don Box21-Jan-08 22:31 
GeneralRe: Need help on MFC CListCtrl -- Pin
sarat21-Jan-08 22:52
sarat21-Jan-08 22:52 
GeneralRe: Need help on MFC CListCtrl -- Pin
Don Box21-Jan-08 23:04
Don Box21-Jan-08 23:04 
GeneralRe: Need help on MFC CListCtrl -- Pin
sarat22-Jan-08 0:44
sarat22-Jan-08 0:44 
QuestionRe: Need help on MFC CListCtrl -- Pin
David Crow22-Jan-08 2:59
David Crow22-Jan-08 2:59 
GeneralRe: Need help on MFC CListCtrl -- Pin
sarat27-Jan-08 22:13
sarat27-Jan-08 22:13 

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.