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

C / C++ / MFC

 
QuestionRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) [modified] Pin
XTr1NiTy5-Feb-07 0:02
XTr1NiTy5-Feb-07 0:02 
AnswerRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
#realJSOP5-Feb-07 0:24
mve#realJSOP5-Feb-07 0:24 
QuestionRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
XTr1NiTy5-Feb-07 0:43
XTr1NiTy5-Feb-07 0:43 
AnswerRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
#realJSOP5-Feb-07 1:47
mve#realJSOP5-Feb-07 1:47 
QuestionRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
XTr1NiTy5-Feb-07 1:19
XTr1NiTy5-Feb-07 1:19 
AnswerRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
#realJSOP5-Feb-07 1:50
mve#realJSOP5-Feb-07 1:50 
GeneralRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
XTr1NiTy5-Feb-07 2:06
XTr1NiTy5-Feb-07 2:06 
GeneralRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
#realJSOP5-Feb-07 2:25
mve#realJSOP5-Feb-07 2:25 
Why don't you access the database from within the dialog box? You can create a worker thread that runs the timer, and another worker thread that actually accesses the database and that sends a message back to the dialog that tells the dialog to refresh the list.

In fact, the app should be a dialog based app if that's all it does.

I wrote a series of articles that includes a part that describes a similar process.

http://www.codeproject.com/samples/SDIMultiSplit_Part3.asp[^]

The threading stuff is about halfway down the page, and the classes I included in the demo source code should be easily modifiable to fit your needs. Nothing is free, so be prepared to try to figure this stuff out on your own (because only YOU know all of your requirements). You'll learn more that way. I can say that the timer thread should be a direct drop-in in your code. You also don't have to worry about the status bar panes, so passing a NULL in for the timer thread for that parameter should be fine.

Have a ball.


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


JokeRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
XTr1NiTy5-Feb-07 2:47
XTr1NiTy5-Feb-07 2:47 
AnswerRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
David Crow5-Feb-07 3:09
David Crow5-Feb-07 3:09 
GeneralRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
XTr1NiTy5-Feb-07 3:36
XTr1NiTy5-Feb-07 3:36 
AnswerRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
Michael Dunn5-Feb-07 10:01
sitebuilderMichael Dunn5-Feb-07 10:01 
Questionhide submenu item on selecting a menu item Pin
Sunshine Always4-Feb-07 23:06
Sunshine Always4-Feb-07 23:06 
AnswerRe: hide submenu item on selecting a menu item Pin
kasturi_haribabu4-Feb-07 23:15
kasturi_haribabu4-Feb-07 23:15 
GeneralRe: hide submenu item on selecting a menu item Pin
Sunshine Always4-Feb-07 23:41
Sunshine Always4-Feb-07 23:41 
AnswerRe: hide submenu item on selecting a menu item Pin
kasturi_haribabu5-Feb-07 0:15
kasturi_haribabu5-Feb-07 0:15 
GeneralRe: hide submenu item on selecting a menu item Pin
Sunshine Always5-Feb-07 0:45
Sunshine Always5-Feb-07 0:45 
GeneralRe: hide submenu item on selecting a menu item Pin
Hamid_RT5-Feb-07 7:35
Hamid_RT5-Feb-07 7:35 
AnswerRe: hide submenu item on selecting a menu item Pin
ThatsAlok6-Feb-07 20:12
ThatsAlok6-Feb-07 20:12 
Questionunicode to ascii Pin
asdtry4-Feb-07 22:43
asdtry4-Feb-07 22:43 
QuestionRe: unicode to ascii Pin
David Crow5-Feb-07 3:17
David Crow5-Feb-07 3:17 
AnswerRe: unicode to ascii Pin
toxcct5-Feb-07 4:19
toxcct5-Feb-07 4:19 
AnswerRe: unicode to ascii Pin
ThatsAlok6-Feb-07 20:14
ThatsAlok6-Feb-07 20:14 
QuestionStatusBar Question in MFC Pin
T.RATHA KRISHNAN4-Feb-07 22:34
T.RATHA KRISHNAN4-Feb-07 22:34 
AnswerRe: StatusBar Question in MFC Pin
kasturi_haribabu4-Feb-07 23:10
kasturi_haribabu4-Feb-07 23:10 

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.