Click here to Skip to main content
15,896,153 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to add strings to combobox Pin
vc++_fragrance5-Jul-06 0:31
vc++_fragrance5-Jul-06 0:31 
AnswerRe: How to add strings to combobox Pin
_AnsHUMAN_ 5-Jul-06 0:01
_AnsHUMAN_ 5-Jul-06 0:01 
AnswerRe: How to add strings to combobox Pin
Sarath C5-Jul-06 0:10
Sarath C5-Jul-06 0:10 
QuestionHow we change the shape of the Button Pin
muravi4-Jul-06 23:14
muravi4-Jul-06 23:14 
AnswerRe: How we change the shape of the Button Pin
Hamid_RT4-Jul-06 23:28
Hamid_RT4-Jul-06 23:28 
GeneralRe: How we change the shape of the Button Pin
ANIL KUMAR SHARMA (INDIA)14-Jul-09 19:12
ANIL KUMAR SHARMA (INDIA)14-Jul-09 19:12 
QuestionDevice Context. Pin
voorugonda prashanth4-Jul-06 23:11
voorugonda prashanth4-Jul-06 23:11 
AnswerRe: Device Context. Pin
Sarath C4-Jul-06 23:34
Sarath C4-Jul-06 23:34 
for a WM_PAINT messaege we do the drawings withing BeginPaint and EndPaint.

CPaintDC calls BeginPaint at construction time and EndPaint at destruction time.

From MSDN:
CPaintDC objects encapsulate the common idiom of Windows, calling the BeginPaint function, then drawing in the device context, then calling the EndPaint function. The CPaintDC constructor calls BeginPaint for you, and the destructor calls EndPaint. The simplified process is to create the CDC object, draw, and destroy the CDC object. In the framework, much of even this process is automated. In particular, your OnDraw function is passed a CPaintDC already prepared (via OnPrepareDC), and you simply draw into it. It is destroyed by the framework and the underlying device context is released to Windows upon return from the call to your OnDraw function.



SaRath.

"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."

My Blog | Understanding State Pattern in C++

GeneralRe: Device Context. Pin
voorugonda prashanth4-Jul-06 23:40
voorugonda prashanth4-Jul-06 23:40 
GeneralRe: Device Context. Pin
Hamid_RT4-Jul-06 23:53
Hamid_RT4-Jul-06 23:53 
QuestionButton problem Pin
ashish dogra4-Jul-06 22:46
ashish dogra4-Jul-06 22:46 
AnswerRe: Button problem Pin
Hamid_RT4-Jul-06 22:50
Hamid_RT4-Jul-06 22:50 
GeneralRe: Button problem Pin
ashish dogra4-Jul-06 22:55
ashish dogra4-Jul-06 22:55 
GeneralRe: Button problem Pin
Hamid_RT4-Jul-06 23:05
Hamid_RT4-Jul-06 23:05 
GeneralRe: Button problem Pin
ashish dogra4-Jul-06 23:25
ashish dogra4-Jul-06 23:25 
GeneralRe: Button problem Pin
ashish dogra4-Jul-06 23:47
ashish dogra4-Jul-06 23:47 
GeneralRe: Button problem Pin
Hamid_RT5-Jul-06 0:00
Hamid_RT5-Jul-06 0:00 
GeneralRe: Button problem [modified] Pin
ashish dogra5-Jul-06 0:38
ashish dogra5-Jul-06 0:38 
GeneralRe: Button problem Pin
Hamid_RT5-Jul-06 1:55
Hamid_RT5-Jul-06 1:55 
GeneralRe: Button problem Pin
ashish dogra5-Jul-06 2:17
ashish dogra5-Jul-06 2:17 
GeneralRe: Button problem Pin
Hamid_RT5-Jul-06 2:59
Hamid_RT5-Jul-06 2:59 
AnswerRe: Button problem Pin
_AnsHUMAN_ 4-Jul-06 23:06
_AnsHUMAN_ 4-Jul-06 23:06 
Questionwhat it mean in C++-> TCHAR Pin
Nirmal Khatri4-Jul-06 22:39
Nirmal Khatri4-Jul-06 22:39 
AnswerRe: what it mean in C++-> TCHAR Pin
Sarath C4-Jul-06 22:48
Sarath C4-Jul-06 22:48 
AnswerRe: what it mean in C++-> TCHAR Pin
Hamid_RT4-Jul-06 22:51
Hamid_RT4-Jul-06 22:51 

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.