Click here to Skip to main content
15,891,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow can i load a bitmap on "command button"(ActiveX)at run time Pin
varun0128-Feb-08 18:20
varun0128-Feb-08 18:20 
GeneralParent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
vicky0000028-Feb-08 18:06
vicky0000028-Feb-08 18:06 
GeneralRe: Parent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
Hamid_RT28-Feb-08 19:30
Hamid_RT28-Feb-08 19:30 
GeneralRe: Parent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
Iain Clarke, Warrior Programmer28-Feb-08 23:32
Iain Clarke, Warrior Programmer28-Feb-08 23:32 
GeneralRe: Parent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
vicky0000029-Feb-08 0:07
vicky0000029-Feb-08 0:07 
GeneralRe: Parent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
Iain Clarke, Warrior Programmer29-Feb-08 0:54
Iain Clarke, Warrior Programmer29-Feb-08 0:54 
QuestionRe: Parent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
David Crow29-Feb-08 3:07
David Crow29-Feb-08 3:07 
AnswerRe: Parent Dialog's labels are vanishing for little bit of time when the child dialog exit Pin
JohnCz4-Mar-08 12:41
JohnCz4-Mar-08 12:41 
DavidCrow wrote:
are you calling the second dialog's destructor explicitly


I am not sure why calling destructor explicitly? It should never be done. In this case, dialog object is allocated on the frame and it dies when function goes out of scope; destructor is called automatically.

vicky00000:

Well, I fail to see child-parent relationship between dialogs. Both most likely are owned by main window (it could be the first dialog).

As for doing long processing, follow Iain’s advice #3. Do the background processing in a worker thread.
As for CWaitCursor, it is a legacy class from 16-bit Windows. In 32-bit it will disappear as soon as ne WM_SETCURSOR message is received. If you want to show hourglass, it is better to handle WM_SETCURSOR message and call SetCursor to change cursor for a dureation you need.

JohnCz
MS C++ MVP

GeneralImages in High Resolution Pin
Anu_Bala28-Feb-08 17:22
Anu_Bala28-Feb-08 17:22 
GeneralRe: Images in High Resolution Pin
nbugalia28-Feb-08 19:26
nbugalia28-Feb-08 19:26 
GeneralRe: Images in High Resolution Pin
Hamid_RT28-Feb-08 19:33
Hamid_RT28-Feb-08 19:33 
Generallvalue rvalue discussion Pin
George_George28-Feb-08 17:18
George_George28-Feb-08 17:18 
GeneralRe: lvalue rvalue discussion Pin
nbugalia28-Feb-08 19:30
nbugalia28-Feb-08 19:30 
GeneralRe: lvalue rvalue discussion Pin
George_George28-Feb-08 19:44
George_George28-Feb-08 19:44 
GeneralRe: lvalue rvalue discussion Pin
nbugalia28-Feb-08 19:48
nbugalia28-Feb-08 19:48 
GeneralRe: lvalue rvalue discussion Pin
George_George28-Feb-08 20:18
George_George28-Feb-08 20:18 
GeneralRe: lvalue rvalue discussion Pin
David Crow29-Feb-08 3:12
David Crow29-Feb-08 3:12 
GeneralRe: lvalue rvalue discussion Pin
George_George29-Feb-08 22:31
George_George29-Feb-08 22:31 
GeneralRe: lvalue rvalue discussion Pin
David Crow1-Mar-08 10:59
David Crow1-Mar-08 10:59 
GeneralRe: lvalue rvalue discussion Pin
George_George1-Mar-08 19:07
George_George1-Mar-08 19:07 
GeneralRe: lvalue rvalue discussion Pin
David Crow2-Mar-08 9:02
David Crow2-Mar-08 9:02 
GeneralRe: lvalue rvalue discussion Pin
George_George2-Mar-08 14:54
George_George2-Mar-08 14:54 
GeneralRe: lvalue rvalue discussion Pin
manish.patel28-Feb-08 19:32
manish.patel28-Feb-08 19:32 
GeneralRe: lvalue rvalue discussion Pin
George_George28-Feb-08 19:47
George_George28-Feb-08 19:47 
GeneralRe: lvalue rvalue discussion Pin
manish.patel28-Feb-08 20:53
manish.patel28-Feb-08 20:53 

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.