Click here to Skip to main content
15,926,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Control Event Handler Pin
Daniel Kanev5-Jul-06 5:12
Daniel Kanev5-Jul-06 5:12 
GeneralRe: Control Event Handler Pin
earl5-Jul-06 5:30
earl5-Jul-06 5:30 
GeneralRe: Control Event Handler Pin
Justin Tay5-Jul-06 5:45
Justin Tay5-Jul-06 5:45 
Questionusing a win32 code in program! Pin
farshad.f5-Jul-06 4:45
farshad.f5-Jul-06 4:45 
AnswerRe: using a win32 code in program! Pin
Zac Howland5-Jul-06 4:51
Zac Howland5-Jul-06 4:51 
AnswerRe: using a win32 code in program! Pin
Sarath C5-Jul-06 4:55
Sarath C5-Jul-06 4:55 
QuestionHow to AddString to child dialog Pin
Max++5-Jul-06 4:26
Max++5-Jul-06 4:26 
AnswerRe: How to AddString to child dialog Pin
Sarath C5-Jul-06 4:46
Sarath C5-Jul-06 4:46 
is the child dailog is a modal dialog?

there you can do this in 2-3 ways.

1. Provide an interface from child dialog(public function) to add the string to list box. Inside that function call "Addstring" function of the required list box. or keep it in data array and update to list box whenever needed(recommended)
2. Return the handle of the list box on calling an interface (public function)provided. ( not recommended)
3. Define a custom message handler in child dialog. pass the string in on calling PostMessage or SendMessage pass the string (pointer) in WPARAM or LPARAM (casting may requried). Inside the message handler cast the passed parameter to string pointer and update the listbox. for message sending in this case SendMessage is good because post message will return on posting the command. it will not wait till the update complete. so the pointer passing to the function may get invalid. ( this is too not recommended)

SaRath.

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

<blink>My Blog | Understanding State Pattern in C++

QuestionThread ..Serial communication..COM DLL Pin
RockyJames5-Jul-06 3:57
RockyJames5-Jul-06 3:57 
AnswerRe: Thread ..Serial communication..COM DLL Pin
earl5-Jul-06 4:22
earl5-Jul-06 4:22 
Question[Message Deleted] Pin
RockyJames5-Jul-06 3:48
RockyJames5-Jul-06 3:48 
AnswerRe: Thread Pin
Sarath C5-Jul-06 3:52
Sarath C5-Jul-06 3:52 
GeneralRe: Thread Pin
RockyJames5-Jul-06 4:08
RockyJames5-Jul-06 4:08 
AnswerRe: Thread Pin
_AnsHUMAN_ 5-Jul-06 3:52
_AnsHUMAN_ 5-Jul-06 3:52 
AnswerRe: Thread Pin
Marc Soleda5-Jul-06 3:53
Marc Soleda5-Jul-06 3:53 
GeneralRe: Thread Pin
RockyJames5-Jul-06 4:09
RockyJames5-Jul-06 4:09 
AnswerRe: Thread ..Serial communication..COM DLL Pin
Cedric Moonen5-Jul-06 3:57
Cedric Moonen5-Jul-06 3:57 
GeneralRe: Thread ..Serial communication..COM DLL Pin
RockyJames5-Jul-06 4:05
RockyJames5-Jul-06 4:05 
GeneralRe: Thread ..Serial communication..COM DLL Pin
Cedric Moonen5-Jul-06 4:18
Cedric Moonen5-Jul-06 4:18 
QuestionDbgPrint in user mode Pin
Kharfax5-Jul-06 3:20
Kharfax5-Jul-06 3:20 
AnswerRe: DbgPrint in user mode Pin
earl5-Jul-06 4:24
earl5-Jul-06 4:24 
GeneralRe: DbgPrint in user mode Pin
Kharfax5-Jul-06 4:30
Kharfax5-Jul-06 4:30 
QuestionC++ code problem Pin
Nirmal Khatri5-Jul-06 3:16
Nirmal Khatri5-Jul-06 3:16 
AnswerRe: C++ code problem Pin
vikramlinux5-Jul-06 3:24
vikramlinux5-Jul-06 3:24 
AnswerRe: C++ code problem Pin
Sarath C5-Jul-06 3:29
Sarath C5-Jul-06 3:29 

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.