Click here to Skip to main content
15,914,481 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralJoystick/Gamepad input when window isn't active Pin
zhen857-Jan-04 3:26
zhen857-Jan-04 3:26 
GeneralRe: Joystick/Gamepad input when window isn't active Pin
zhen857-Jan-04 3:52
zhen857-Jan-04 3:52 
GeneralRe: Joystick/Gamepad input when window isn't active Pin
фил7-Jan-04 4:22
фил7-Jan-04 4:22 
GeneralRe: Joystick/Gamepad input when window isn't active Pin
zhen857-Jan-04 6:17
zhen857-Jan-04 6:17 
GeneralGflag.exe - Help me !!!!! Pin
Anonymous7-Jan-04 2:59
Anonymous7-Jan-04 2:59 
GeneralMPEG encoder Pin
mansour_ahmadian7-Jan-04 2:28
mansour_ahmadian7-Jan-04 2:28 
QuestionHow to display a dialog via a Console App ?? Pin
krbprogrammer7-Jan-04 1:23
krbprogrammer7-Jan-04 1:23 
AnswerRe: How to display a dialog via a Console App ?? Pin
Antti Keskinen7-Jan-04 1:52
Antti Keskinen7-Jan-04 1:52 
Do not use ShowWindow().

Create the dialog box (CDialog) on the heap (statically), then call it's DoModalmember function to initialize a modal dialog box, assuming that you are using MFC to implement this. Program execution will halt until DoModal returns.

If you are not using MFC, then you need to manually lock the dialog resource and paint your window based on it's layout. This is MUCH more difficult and time-consuming, but if you do it once, remember to save a Win32 class hiearchy and post it here to CodeProject Smile | :)

Tip: Create a console application that supports MFC.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: How to display a dialog via a Console App ?? Pin
krbprogrammer7-Jan-04 7:38
krbprogrammer7-Jan-04 7:38 
AnswerRe: How to display a dialog via a Console App ?? Pin
shultas7-Jan-04 2:40
shultas7-Jan-04 2:40 
GeneralRe: How to display a dialog via a Console App ?? Pin
shultas7-Jan-04 2:43
shultas7-Jan-04 2:43 
GeneralRe: How to display a dialog via a Console App ?? Pin
krbprogrammer7-Jan-04 7:40
krbprogrammer7-Jan-04 7:40 
AnswerRe: How to display a dialog via a Console App ?? Pin
PJ Arends7-Jan-04 6:00
professionalPJ Arends7-Jan-04 6:00 
GeneralMy program is slower and slower.help me Pin
Member 275217-Jan-04 1:00
Member 275217-Jan-04 1:00 
GeneralRe: Crash Pin
Monty27-Jan-04 0:32
Monty27-Jan-04 0:32 
GeneralRe: Crash Pin
SiddharthAtw7-Jan-04 0:54
SiddharthAtw7-Jan-04 0:54 
QuestionHow Do I get message ON_UPDATE_COMMAND_UI for CButton Pin
morefalt6-Jan-04 23:36
morefalt6-Jan-04 23:36 
AnswerRe: How Do I get message ON_UPDATE_COMMAND_UI for CButton Pin
Monty27-Jan-04 0:09
Monty27-Jan-04 0:09 
AnswerRe: How Do I get message ON_UPDATE_COMMAND_UI for CButton Pin
фил7-Jan-04 4:26
фил7-Jan-04 4:26 
GeneralRe: How Do I get message ON_UPDATE_COMMAND_UI for CButton Pin
Prakash Nadar7-Jan-04 6:51
Prakash Nadar7-Jan-04 6:51 
Generalurl verifier Pin
murali_utr6-Jan-04 22:22
murali_utr6-Jan-04 22:22 
GeneralRe: url verifier Pin
David Crow7-Jan-04 2:36
David Crow7-Jan-04 2:36 
GeneralBlinking ListControl Items Pin
Meherman6-Jan-04 21:50
Meherman6-Jan-04 21:50 
GeneralRe: Blinking ListControl Items Pin
twing7-Jan-04 18:56
twing7-Jan-04 18:56 
GeneralCSocket problem Pin
y_seval6-Jan-04 21:46
y_seval6-Jan-04 21:46 

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.