Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

where do CDialogs go to sleep????

beanbean Member Posts: 3
hi guys,

i'd like a CDialog based class, that runs as a thread, to keep itself informed with data coming from the mainframe window.
two Qs:

1> what function is called when the dialog enters an idle state?
in this function i can implement a code that checks changes on the mainframe.

2> can i change the main application priority?

thanks, dana.


Comments

  • DirectAnimDirectAnim Member Posts: 10
    Dialogs don't "go to sleep". As soon as you display them, they are created. When the user dismisses the dialog (via enter or esc) the dialog is destroyed. Yes, you can change your main application priority.

    Unless it is critical that the user view constantly changing information on the dialog, I would reccomend adding parameters to your dialog constructor that are consistant with the data that needs to be transferred on your main application. Otherwise, consider creating a non-CDialog based class for your information viewer.

    If you absolutly must have a dialog box, consider using this->ShowWindow(SW_HIDE) to hide the dialog and myDialogDerived.DoModeless() to display a dialog that doesn't lock up the processes in the main window.
  • Justin BibJustin Bib USAMember Posts: 0

    ______ | http://forcoder.org | free video tutorials and ebooks about { JavaScript, Go, Swift, PHP, R, Scratch, Ruby, Perl, C, MATLAB, Assembly, Visual Basic .NET, C++, Objective-C, Java, PL/SQL, Python, Visual Basic, Delphi, C# Fortran, Bash, SAS, Hack, Apex, Logo, COBOL, Rust, Awk, Alice, F#, FoxPro, ML, Dart, Transact-SQL, Kotlin, Erlang, VBScript, Crystal, LabVIEW, Scala, Scheme, Lua, D, Prolog, ABAP, Julia, Lisp, Clojure, Ada } ___________

Sign In or Register to comment.