Click here to Skip to main content
15,887,975 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie14-Sep-08 8:09
FrankMookie14-Sep-08 8:09 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
bob1697214-Sep-08 10:25
bob1697214-Sep-08 10:25 
AnswerRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
CPallini13-Sep-08 21:04
mveCPallini13-Sep-08 21:04 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie14-Sep-08 7:48
FrankMookie14-Sep-08 7:48 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
CPallini14-Sep-08 8:19
mveCPallini14-Sep-08 8:19 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie14-Sep-08 10:44
FrankMookie14-Sep-08 10:44 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
CPallini14-Sep-08 11:31
mveCPallini14-Sep-08 11:31 
QuestionA Question about AfxRegisterWndClass Pin
BobInNJ13-Sep-08 13:09
BobInNJ13-Sep-08 13:09 
Please consider the following fragment of code from the book Programming Windows 95 with MFC
by Jeff Prosise:

CMainWindow::CMainWindow()
{
CString strWndClass = AfxRegisterWndClass ( 0, myApp.LoadStanddadCursor ( IDC_ARROW ),
(HBRUSH)(COLOR_3DFACE + 1), myApp.LoadStandardIcon( IDI_APPLICATION ) );




I do not understand why is is COLOR_3DFACE + 1, instead of COLOR_3DFACE. Since COLOR_3DFACE represents an enumeration value, it seems to me, adding 1 to it is wrong. What am I missing?

Thanks
Bob
AnswerRe: A Question about AfxRegisterWndClass Pin
Mark Salsbery13-Sep-08 15:55
Mark Salsbery13-Sep-08 15:55 
AnswerRe: A Question about AfxRegisterWndClass Pin
CPallini14-Sep-08 6:53
mveCPallini14-Sep-08 6:53 
QuestionWhy the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:04
Joseph Marzbani13-Sep-08 9:04 
AnswerRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery13-Sep-08 9:19
Mark Salsbery13-Sep-08 9:19 
NewsRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:26
Joseph Marzbani13-Sep-08 9:26 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery13-Sep-08 9:40
Mark Salsbery13-Sep-08 9:40 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:51
Joseph Marzbani13-Sep-08 9:51 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Perspx13-Sep-08 9:59
Perspx13-Sep-08 9:59 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 10:06
Joseph Marzbani13-Sep-08 10:06 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery13-Sep-08 10:17
Mark Salsbery13-Sep-08 10:17 
AnswerRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 22:08
Joseph Marzbani13-Sep-08 22:08 
QuestionRe: Why the hell does the TranslateMessage() fail? Pin
CPallini13-Sep-08 22:54
mveCPallini13-Sep-08 22:54 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery14-Sep-08 9:27
Mark Salsbery14-Sep-08 9:27 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani15-Sep-08 4:18
Joseph Marzbani15-Sep-08 4:18 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Perspx13-Sep-08 9:32
Perspx13-Sep-08 9:32 
AnswerRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:45
Joseph Marzbani13-Sep-08 9:45 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Perspx13-Sep-08 9:48
Perspx13-Sep-08 9:48 

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.