Click here to Skip to main content
15,919,340 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: #pragma once and #ifndef Pin
markkuk4-Jul-02 1:21
markkuk4-Jul-02 1:21 
GeneralRe: #pragma once and #ifndef Pin
Michael Dunn4-Jul-02 7:32
sitebuilderMichael Dunn4-Jul-02 7:32 
GeneralOnUpdate(CCmdUI* pCmdUI) isnt called Pin
John Oliver3-Jul-02 23:47
John Oliver3-Jul-02 23:47 
GeneralRe: OnUpdate(CCmdUI* pCmdUI) isnt called Pin
Michael Dunn4-Jul-02 7:34
sitebuilderMichael Dunn4-Jul-02 7:34 
GeneralRe: OnUpdate(CCmdUI* pCmdUI) isnt called Pin
John Oliver5-Jul-02 0:07
John Oliver5-Jul-02 0:07 
QuestionMAKEWPARAM ??? Pin
Alek3-Jul-02 23:09
Alek3-Jul-02 23:09 
AnswerRe: MAKEWPARAM ??? Pin
4-Jul-02 23:23
suss4-Jul-02 23:23 
Generaldevice context question Pin
3-Jul-02 22:32
suss3-Jul-02 22:32 
Hello,

I am new to MFC and the device context stuff. I have read some sample codes and write a simple program. It has a dialog with a button and a groupbox. When the button is pressed, an image is drawn to the groupbox by retrieving its hDC. This works fine but I don't know how to keep the image visible after refresh. How to handle this (like AutoRedraw in VB?) in VC?

As a related question, I have tried to modified the program so that the dialog is a pop up window rather than the main window. I want to display the image as soon as the dialog is visible. I have tried to put the drawing code in OnInitDialog() and DoModal(), but got no luck. I guess it is the same refresh problem as above, but I am not sure. Will this problem be solved when the above refresh problem is solved? Or I need some more special handling?

Thanks in advance.
GeneralRe: device context question Pin
4-Jul-02 9:19
suss4-Jul-02 9:19 
GeneralVersion info managing Pin
56789012343-Jul-02 22:29
56789012343-Jul-02 22:29 
Generalhelp me in MFC Pin
HoldMe3-Jul-02 22:13
HoldMe3-Jul-02 22:13 
Generalautologin with Win2000 Pin
Jerome Conus3-Jul-02 20:13
Jerome Conus3-Jul-02 20:13 
GeneralRe: autologin with Win2000 Pin
benjymous3-Jul-02 23:20
benjymous3-Jul-02 23:20 
GeneralRe: autologin with Win2000 Pin
Mike Nordell4-Jul-02 6:19
Mike Nordell4-Jul-02 6:19 
GeneralRe: autologin with Win2000 Pin
Michael Dunn4-Jul-02 7:38
sitebuilderMichael Dunn4-Jul-02 7:38 
QuestionShrinking a WAV (audio formats)? Pin
3-Jul-02 19:03
suss3-Jul-02 19:03 
AnswerRe: Shrinking a WAV (audio formats)? Pin
Christian Graus3-Jul-02 19:38
protectorChristian Graus3-Jul-02 19:38 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Larry Antram3-Jul-02 20:04
Larry Antram3-Jul-02 20:04 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Mike Nordell4-Jul-02 16:46
Mike Nordell4-Jul-02 16:46 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Larry Antram4-Jul-02 17:18
Larry Antram4-Jul-02 17:18 
GeneralRe: Shrinking a WAV (audio formats)? Pin
5-Jul-02 7:21
suss5-Jul-02 7:21 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Mike Nordell6-Jul-02 6:42
Mike Nordell6-Jul-02 6:42 
GeneralRe: Shrinking a WAV (audio formats)? Pin
haronis26-Jul-02 1:40
haronis26-Jul-02 1:40 
GeneralRe: Shrinking a WAV (audio formats)? Pin
Christian Graus26-Jul-02 1:54
protectorChristian Graus26-Jul-02 1:54 
AnswerRe: Shrinking a WAV (audio formats)? Pin
Larry Antram3-Jul-02 20:25
Larry Antram3-Jul-02 20:25 

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.