Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Update only a part of a View with OnUpdateAllViews 2nd ! Pin
Prasann Mayekar12-Jul-08 3:41
Prasann Mayekar12-Jul-08 3:41 
GeneralRe: Update only a part of a View with OnUpdateAllViews 2nd ! Pin
CrocodileBuck12-Jul-08 4:09
CrocodileBuck12-Jul-08 4:09 
GeneralRe: Update only a part of a View with OnUpdateAllViews 2nd ! Pin
CrocodileBuck12-Jul-08 4:11
CrocodileBuck12-Jul-08 4:11 
QuestionRe: Update only a part of a View with OnUpdateAllViews 2nd ! Pin
David Crow12-Jul-08 7:38
David Crow12-Jul-08 7:38 
Questionstring table error Pin
erfi12-Jul-08 1:20
erfi12-Jul-08 1:20 
AnswerRe: string table error Pin
Bram van Kampen12-Jul-08 13:58
Bram van Kampen12-Jul-08 13:58 
QuestionCBitmapbutton Behaviour Pin
AnithaSubramani12-Jul-08 0:10
AnithaSubramani12-Jul-08 0:10 
AnswerRe: CBitmapbutton Behaviour Pin
Gary R. Wheeler12-Jul-08 3:16
Gary R. Wheeler12-Jul-08 3:16 
1. If your dialog is modal, PreTranslateMessage doesn't work[^].

2. You don't need to disable and then re-enable the button just to change its bitmap. Instead, do something like this:
m_button4.LoadBitmaps(IDB_BITMAP1,0,IDB_BITMAP1,0);
m_button4.Invalidate();
m_button4.UpdateWindow()
Your disable/enable calls have a side effect of getting the button to repaint. Unfortunately, they also change the state of the button twice, which creates a lot of ugly flicker.

3. In your OnBnSetfocusButton4() handler, you call SetFocus on the button that you're being notified has received the focus. That's not going to do anything useful.

Software Zen: delete this;
Fold With Us![^]

GeneralRe: CBitmapbutton Behaviour Pin
AnithaSubramani14-Jul-08 4:46
AnithaSubramani14-Jul-08 4:46 
GeneralRe: CBitmapbutton Behaviour Pin
Gary R. Wheeler14-Jul-08 9:37
Gary R. Wheeler14-Jul-08 9:37 
Questiontab controls in vc++ Pin
ani_ikram11-Jul-08 22:50
ani_ikram11-Jul-08 22:50 
AnswerRe: tab controls in vc++ Pin
sudhir_Kumar11-Jul-08 23:04
sudhir_Kumar11-Jul-08 23:04 
GeneralRe: tab controls in vc++ Pin
ani_ikram11-Jul-08 23:11
ani_ikram11-Jul-08 23:11 
GeneralRe: tab controls in vc++ Pin
sudhir_Kumar11-Jul-08 23:28
sudhir_Kumar11-Jul-08 23:28 
GeneralRe: tab controls in vc++ Pin
tkondal12-Jul-08 9:39
tkondal12-Jul-08 9:39 
Questionpls help newbi MFC VC++ reading from MDB Pin
GPat2411-Jul-08 22:21
GPat2411-Jul-08 22:21 
QuestionHow can fix size of SDI type application? Pin
Le@rner11-Jul-08 20:23
Le@rner11-Jul-08 20:23 
AnswerRe: How can fix size of SDI type application? Pin
sudhir_Kumar11-Jul-08 23:02
sudhir_Kumar11-Jul-08 23:02 
AnswerRe: How can fix size of SDI type application? Pin
krmed12-Jul-08 3:28
krmed12-Jul-08 3:28 
QuestionPrint Preview on SDI splitter application. Pin
Le@rner11-Jul-08 19:07
Le@rner11-Jul-08 19:07 
QuestionUnhandled exception at 0x5d0f0892 in Demo.exe: 0xC0000094: Integer division by zero. Pin
Le@rner11-Jul-08 18:22
Le@rner11-Jul-08 18:22 
AnswerRe: Unhandled exception at 0x5d0f0892 in Demo.exe: 0xC0000094: Integer division by zero. Pin
Cedric Moonen11-Jul-08 22:51
Cedric Moonen11-Jul-08 22:51 
Questionc code for image scaling Pin
md shafaeat hossain11-Jul-08 18:21
md shafaeat hossain11-Jul-08 18:21 
AnswerRe: c code for image scaling Pin
Sameerkumar Namdeo11-Jul-08 18:59
Sameerkumar Namdeo11-Jul-08 18:59 
AnswerRe: c code for image scaling Pin
Ștefan-Mihai MOGA11-Jul-08 21:22
professionalȘtefan-Mihai MOGA11-Jul-08 21:22 

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.