Click here to Skip to main content
15,917,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem with the reading of the BMP file Pin
Joe Woodbury14-Jul-09 6:38
professionalJoe Woodbury14-Jul-09 6:38 
GeneralRe: Problem with the reading of the BMP file Pin
TeslaShock16-Jul-09 5:13
TeslaShock16-Jul-09 5:13 
QuestionOnInitDialog() never be called Pin
transoft14-Jul-09 2:22
transoft14-Jul-09 2:22 
QuestionRe: OnInitDialog() never be called Pin
CPallini14-Jul-09 2:35
mveCPallini14-Jul-09 2:35 
AnswerRe: OnInitDialog() never be called Pin
transoft14-Jul-09 2:42
transoft14-Jul-09 2:42 
GeneralRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 2:48
Cedric Moonen14-Jul-09 2:48 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 6:05
transoft14-Jul-09 6:05 
GeneralRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 7:20
Cedric Moonen14-Jul-09 7:20 
transoft wrote:
"Why do you need to have the pointer available and where ? If it is in your dialog class, you could simply associate a class member with that button."

From what you said, you have something to learn and they are not IN a good MFC book.


What do you mean exactly ? If you need to access your button control, why don't you simply associate a variable with it ? Confused | :confused:


transoft wrote:
"No, that's wrong. Why would that function only work inside the OnInitDialog function ? That doesn't make any sense."

From what you said, you have something to learn.


Again, unless you express yourself very poorly and I didn't understand you at all, calling GetDlgItem can be called from any function from your dialog class as long as your dialog has been created. I'm sure about this because I've been using that function quite often in such situation. Besides, what would prevent this function from working if not called from OnInitDialog ? What if you call a function from OnInitDialog which call itself the GetDlgItem ?

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 7:24
transoft14-Jul-09 7:24 
GeneralRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 7:28
Cedric Moonen14-Jul-09 7:28 
AnswerRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 2:44
Cedric Moonen14-Jul-09 2:44 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 5:57
transoft14-Jul-09 5:57 
AnswerRe: OnInitDialog() never be called Pin
Roger Stoltz14-Jul-09 5:22
Roger Stoltz14-Jul-09 5:22 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 5:46
transoft14-Jul-09 5:46 
QuestionRe: OnInitDialog() never be called Pin
Roger Stoltz14-Jul-09 6:14
Roger Stoltz14-Jul-09 6:14 
AnswerRe: OnInitDialog() never be called Pin
transoft14-Jul-09 6:23
transoft14-Jul-09 6:23 
AnswerRe: OnInitDialog() never be called Pin
Roger Stoltz14-Jul-09 6:44
Roger Stoltz14-Jul-09 6:44 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 7:22
transoft14-Jul-09 7:22 
AnswerRe: OnInitDialog() never be called Pin
Joe Woodbury14-Jul-09 6:40
professionalJoe Woodbury14-Jul-09 6:40 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 6:49
transoft14-Jul-09 6:49 
GeneralRe: OnInitDialog() never be called Pin
Joe Woodbury14-Jul-09 6:58
professionalJoe Woodbury14-Jul-09 6:58 
GeneralRe: OnInitDialog() never be called Pin
Roger Stoltz14-Jul-09 7:03
Roger Stoltz14-Jul-09 7:03 
Questionc++ unit Pin
rsumanan14-Jul-09 2:07
rsumanan14-Jul-09 2:07 
QuestionRe: c++ unit Pin
CPallini14-Jul-09 2:15
mveCPallini14-Jul-09 2:15 
QuestionSocket Pin
navneet198514-Jul-09 2:03
navneet198514-Jul-09 2:03 

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.