Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can add Picture control Programmatically Pin
hemlat23-Feb-09 20:20
hemlat23-Feb-09 20:20 
AnswerRe: How can add Picture control Programmatically Pin
Chandrasekharan P23-Feb-09 20:43
Chandrasekharan P23-Feb-09 20:43 
GeneralRe: How can add Picture control Programmatically [modified] Pin
hemlat23-Feb-09 20:55
hemlat23-Feb-09 20:55 
GeneralRe: How can add Picture control Programmatically Pin
Chandrasekharan P23-Feb-09 21:24
Chandrasekharan P23-Feb-09 21:24 
GeneralRe: How can add Picture control Programmatically Pin
hemlat23-Feb-09 22:00
hemlat23-Feb-09 22:00 
GeneralRe: How can add Picture control Programmatically Pin
Chandrasekharan P23-Feb-09 22:05
Chandrasekharan P23-Feb-09 22:05 
GeneralRe: How can add Picture control Programmatically Pin
hemlat23-Feb-09 22:10
hemlat23-Feb-09 22:10 
GeneralRe: How can add Picture control Programmatically Pin
Cedric Moonen23-Feb-09 22:11
Cedric Moonen23-Feb-09 22:11 
hemlat wrote:
After making third line as comment. It is Displaying my static on Dialog.


Well, obviously if you delete the control it won't appear on the screen anymore.
BTW, you don't need to use new for what you are doing. Simply add a CStatic member in your dialog class and call Create when you want the control to be displayed (it has to be a class member, otherwise if it is local to a function, the destructor will be called at the end of the function, removing the control from the screen).

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

AnswerRe: How can add Picture control Programmatically Pin
Nishad S23-Feb-09 21:44
Nishad S23-Feb-09 21:44 
GeneralRe: How can add Picture control Programmatically Pin
hemlat23-Feb-09 22:09
hemlat23-Feb-09 22:09 
QuestionDebug Assertion Failed Pin
MsmVc23-Feb-09 18:50
MsmVc23-Feb-09 18:50 
AnswerRe: Debug Assertion Failed Pin
«_Superman_»23-Feb-09 19:08
professional«_Superman_»23-Feb-09 19:08 
GeneralRe: Debug Assertion Failed Pin
MsmVc23-Feb-09 19:19
MsmVc23-Feb-09 19:19 
GeneralRe: Debug Assertion Failed Pin
CPallini23-Feb-09 20:40
mveCPallini23-Feb-09 20:40 
AnswerRe: Debug Assertion Failed Pin
KarstenK23-Feb-09 21:25
mveKarstenK23-Feb-09 21:25 
QuestionRe: Debug Assertion Failed Pin
David Crow24-Feb-09 3:28
David Crow24-Feb-09 3:28 
Questionusing vectors to parse text delimited files in C++ Pin
meixiang623-Feb-09 17:12
meixiang623-Feb-09 17:12 
AnswerRe: using vectors to parse text delimited files in C++ Pin
Stuart Dootson23-Feb-09 19:56
professionalStuart Dootson23-Feb-09 19:56 
GeneralRe: using vectors to parse text delimited files in C++ Pin
meixiang624-Feb-09 5:03
meixiang624-Feb-09 5:03 
QuestionHelp with number to string conversion Pin
TabascoSauce23-Feb-09 14:09
TabascoSauce23-Feb-09 14:09 
AnswerRe: Help with number to string conversion Pin
Stuart Dootson23-Feb-09 14:26
professionalStuart Dootson23-Feb-09 14:26 
GeneralRe: Help with number to string conversion Pin
TabascoSauce23-Feb-09 15:32
TabascoSauce23-Feb-09 15:32 
QuestionNon-Static Member Call Question Pin
Rangarajan Varadan23-Feb-09 12:51
Rangarajan Varadan23-Feb-09 12:51 
AnswerRe: Non-Static Member Call Question Pin
Stuart Dootson23-Feb-09 13:53
professionalStuart Dootson23-Feb-09 13:53 
GeneralRe: Non-Static Member Call Question Pin
David Crow23-Feb-09 16:26
David Crow23-Feb-09 16:26 

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.