Click here to Skip to main content
15,921,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSmall icon vs Large icon Pin
Paul Oss23-Oct-02 12:49
Paul Oss23-Oct-02 12:49 
GeneralRe: Small icon vs Large icon Pin
Paul M Watt23-Oct-02 13:18
mentorPaul M Watt23-Oct-02 13:18 
GeneralRe: Small icon vs Large icon Pin
Paul Oss23-Oct-02 16:45
Paul Oss23-Oct-02 16:45 
GeneralRe: Small icon vs Large icon Pin
Paul M Watt23-Oct-02 18:34
mentorPaul M Watt23-Oct-02 18:34 
GeneralRe: Small icon vs Large icon Pin
Michael Dunn23-Oct-02 13:30
sitebuilderMichael Dunn23-Oct-02 13:30 
QuestionVC++ 7 bug or what? Pin
Val Samko23-Oct-02 11:43
Val Samko23-Oct-02 11:43 
QuestionRaw Win32 API UI in a DLL...? Pin
dandy7223-Oct-02 10:27
dandy7223-Oct-02 10:27 
AnswerRe: Raw Win32 API UI in a DLL...? Pin
Paul M Watt23-Oct-02 12:16
mentorPaul M Watt23-Oct-02 12:16 
You can call ::DialogBox inside of your DLL function that has been exported, and that is all that you would need. You could develop a more elaborate UI if you desired using the raw Win32 API, or even WTL, but I think that would be overkill in this case.

DialogBox creates a message pump on the stack for you (that is how it becomes a modal window), and when you close the dialog box the message pump goes away with the dialog box.

You may want to add in some sort of synchronization in your DLL to only allow one of these dialog boxes to appear at a time, but I guess that all depends on how you want your system to work.

Lastly, this does not depend on any frame work, so you will be in the clear.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Raw Win32 API UI in a DLL...? Pin
dandy7224-Oct-02 3:47
dandy7224-Oct-02 3:47 
AnswerRe: Raw Win32 API UI in a DLL...? Pin
Mike Nordell24-Oct-02 4:06
Mike Nordell24-Oct-02 4:06 
GeneralRe: Raw Win32 API UI in a DLL...? Pin
dandy7224-Oct-02 8:56
dandy7224-Oct-02 8:56 
GeneralList/Array - finding items Pin
User 665823-Oct-02 10:19
User 665823-Oct-02 10:19 
GeneralRe: List/Array - finding items Pin
Dave Bryant23-Oct-02 10:27
Dave Bryant23-Oct-02 10:27 
GeneralRe: List/Array - finding items Pin
Daniel Turini23-Oct-02 10:35
Daniel Turini23-Oct-02 10:35 
GeneralRe: List/Array - finding items Pin
User 665823-Oct-02 13:14
User 665823-Oct-02 13:14 
GeneralUser breakpoint when trying to free memory. Pin
Anonymous23-Oct-02 9:50
Anonymous23-Oct-02 9:50 
GeneralRe: User breakpoint when trying to free memory. Pin
Daniel Turini23-Oct-02 9:57
Daniel Turini23-Oct-02 9:57 
GeneralRe: User breakpoint when trying to free memory. Pin
Stephane Rodriguez.23-Oct-02 10:14
Stephane Rodriguez.23-Oct-02 10:14 
GeneralMFC doc/view issue Pin
will138323-Oct-02 9:38
will138323-Oct-02 9:38 
GeneralRe: MFC doc/view issue Pin
valikac23-Oct-02 18:08
valikac23-Oct-02 18:08 
QuestionHow to change the background of a CHotkeyCtrl ? Pin
CAE23-Oct-02 9:12
CAE23-Oct-02 9:12 
AnswerRe: How to change the background of a CHotkeyCtrl ? Pin
Mike Nordell24-Oct-02 4:09
Mike Nordell24-Oct-02 4:09 
Generalhtml help workshop question Pin
Anonymous23-Oct-02 8:48
Anonymous23-Oct-02 8:48 
GeneralRe: html help workshop question Pin
Dominik Reichl23-Oct-02 9:15
Dominik Reichl23-Oct-02 9:15 
QuestionHow do i replace a specific string inside a char array with another string? Pin
Anonymous23-Oct-02 8:28
Anonymous23-Oct-02 8:28 

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.