Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnPaint of a Dialog in a Dialog-App

Status
Not open for further replies.

zigular

Technical User
Jun 29, 2004
18
DE
hi,

i have a dialog-based appl where i display some data via the OnPaint function. the data were continiously updated in an extern file, that send a WM_PAINT broadcast.

now, i create another dialog from my appl, where i want to display exactly the same data vis ITS OnPaint function.

my question:
(1) how i can realise the same visualisation in both dialogs in generall (with state data e.g.)?

(2) when i have managed that, will the broadcast in my extern thread call BOTH OnPaint function? when no, how can i realise that??

cheers
hilmar

 
What you're trying to do is exactly what the MFC's document-view architecture was designed for. Broadcasting WM_PAINT is just wrong on so many levels.
 
hi teriviret, thank you for your reply (and all other hints)!!
a sdi appl would be much more better, that's for sure (see all my other problems in this forum). but anyway, also with THIS (sdi) i've no experiences at all! i started with a dialog-based application cause i could gave my tool a quite specific face, and that, in a very short time.
and perhaps, by solving all my problems i have by following my route, i learn much more about MFC on this way.

all the best
hilmar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top