Click here to Skip to main content
16,019,983 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionis this tricky Pin
anup nambiar23-Jan-06 19:22
anup nambiar23-Jan-06 19:22 
AnswerRe: is this tricky Pin
Gavin Taylor23-Jan-06 19:49
professionalGavin Taylor23-Jan-06 19:49 
GeneralRe: is this tricky Pin
Owner drawn23-Jan-06 19:55
Owner drawn23-Jan-06 19:55 
GeneralRe: is this tricky Pin
Gavin Taylor23-Jan-06 20:03
professionalGavin Taylor23-Jan-06 20:03 
AnswerRe: is this tricky Pin
Michael Dunn23-Jan-06 20:19
sitebuilderMichael Dunn23-Jan-06 20:19 
GeneralRe: is this tricky Pin
Gavin Taylor23-Jan-06 20:33
professionalGavin Taylor23-Jan-06 20:33 
GeneralRe: is this tricky Pin
Ryan Binns23-Jan-06 22:01
Ryan Binns23-Jan-06 22:01 
QuestionDll with real modal dialog boxes Pin
romano_sk23-Jan-06 19:20
romano_sk23-Jan-06 19:20 
Hi,

I have created a dll file with dialog box. Dll I am using in Visual Basic .NET. How can I display the dialog box so the user could not switch back to the original form without closing the dialog box? Like system Open or Save dialog boxes...

1. For displaying my dialog box from DLL I am using following code:

DialogBox(_hInstDLL, MAKEINTRESOURCE(DLG_MAIN), NULL, (DLGPROC)MainDlgProc);

With this code the user could change focus to the application window in Visual Basic .NET.

2. I have tried also send an handle of application window:

DWORD WINAPI ShowConfigurationDialog (HWND hwndParent, ...)
{
    ...
    DialogBox(_hInstDLL, MAKEINTRESOURCE(DLG_MAIN), hwndParent, (DLGPROC)MainDlgProc);
}


And from Basic:

ShowConfigurationDialog(Me.Handle.ToInt32, ...)

In this case the dialog box will not be displayed at all and DialogBox returns with 0.


Thanks, Roman
AnswerRe: Dll with real modal dialog boxes Pin
romano_sk26-Jan-06 22:23
romano_sk26-Jan-06 22:23 
QuestionCompiler doesn't know class.... sometimes Pin
Lilith.C23-Jan-06 19:01
Lilith.C23-Jan-06 19:01 
AnswerRe: Compiler doesn't know class.... sometimes Pin
Michael Dunn23-Jan-06 20:22
sitebuilderMichael Dunn23-Jan-06 20:22 
GeneralRe: Compiler doesn't know class.... sometimes Pin
Lilith.C24-Jan-06 2:10
Lilith.C24-Jan-06 2:10 
QuestionRe: Compiler doesn't know class.... sometimes Pin
Lilith.C24-Jan-06 6:29
Lilith.C24-Jan-06 6:29 
AnswerRe: Compiler doesn't know class.... sometimes Pin
Michael Dunn24-Jan-06 7:17
sitebuilderMichael Dunn24-Jan-06 7:17 
QuestionMDI non-themed max/min boxes Pin
picazo23-Jan-06 18:49
picazo23-Jan-06 18:49 
AnswerRe: MDI non-themed max/min boxes Pin
Owner drawn23-Jan-06 18:54
Owner drawn23-Jan-06 18:54 
GeneralRe: MDI non-themed max/min boxes Pin
picazo23-Jan-06 18:59
picazo23-Jan-06 18:59 
GeneralRe: MDI non-themed max/min boxes Pin
Owner drawn23-Jan-06 19:22
Owner drawn23-Jan-06 19:22 
GeneralRe: MDI non-themed max/min boxes Pin
picazo23-Jan-06 19:56
picazo23-Jan-06 19:56 
GeneralRe: MDI non-themed max/min boxes Pin
Owner drawn23-Jan-06 22:04
Owner drawn23-Jan-06 22:04 
QuestionEnable dialogue control Pin
Anu_Bala23-Jan-06 17:52
Anu_Bala23-Jan-06 17:52 
AnswerRe: Enable dialogue control Pin
Owner drawn23-Jan-06 18:00
Owner drawn23-Jan-06 18:00 
GeneralRe: Enable dialogue control Pin
namaskaaram24-Jan-06 1:22
namaskaaram24-Jan-06 1:22 
AnswerRe: Enable dialogue control Pin
namaskaaram23-Jan-06 18:33
namaskaaram23-Jan-06 18:33 
QuestionGetting resources from DLL with res: protocol? Pin
Lord Kixdemp23-Jan-06 17:28
Lord Kixdemp23-Jan-06 17: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.