Click to See Complete Forum and Search --> : diaog box
rama711
June 6th, 2005, 08:34 AM
Hi
if a dialog box popups in the middle of the screen.
is it possible to make it popup in the upper corner of the screen?
Smasher/Devourer
June 6th, 2005, 09:44 AM
Sure. Just watch for the WM_INITDIALOG message in your dialog box procedure -- in fact you're probably doing this already since that's typically where much of the initialization for a dialog box goes -- and when it comes through, call a positioning function like SetWindowPos().
rama711
June 8th, 2005, 07:22 AM
Sure. Just watch for the WM_INITDIALOG message in your dialog box procedure -- in fact you're probably doing this already since that's typically where much of the initialization for a dialog box goes -- and when it comes through, call a positioning function like SetWindowPos().
Can you be more spesific more details I appreciated
SuperKoko
June 8th, 2005, 07:44 AM
If you can, edit the dialog resources and remove the DS_CENTER style of the dialog box.
And set the coordinates of the dialog box to 0
it should look like that:
IDD_DIALOG1 DIALOGEX 0, 0, 432, 262 // coordinates x,y,width,height
STYLE DS_3DLOOK | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX // style : must not contain DS_CENTER
CAPTION "Hello, world"
FONT 8, "MS Sans Serif"
{
CONTROL "Edit1", IDC_EDIT1, "edit", ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 0, 0, 428, 146
}
Of course that is just an example... you don't need an edit control, neither exactly the same dialog styles.
rama711
June 9th, 2005, 09:04 AM
If you can, edit the dialog resources and remove the DS_CENTER style of the dialog box.
And set the coordinates of the dialog box to 0
it should look like that:
IDD_DIALOG1 DIALOGEX 0, 0, 432, 262 // coordinates x,y,width,height
STYLE DS_3DLOOK | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX // style : must not contain DS_CENTER
CAPTION "Hello, world"
FONT 8, "MS Sans Serif"
{
CONTROL "Edit1", IDC_EDIT1, "edit", ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 0, 0, 428, 146
}
Of course that is just an example... you don't need an edit control, neither exactly the same dialog styles.
But the problem I can not find this dialog box. I used very tool to find it and has no luck see attached zip
SuperKoko
June 9th, 2005, 11:15 AM
This dialog box is probably not issued from a dialog box template, but may be created directly with CreateWindow, or with the application's own dialog box template system.
You can try to extract resources from all .dll and the .exe of the application to find if there is a dialog box template.
rama711
June 13th, 2005, 07:41 AM
This dialog box is probably not issued from a dialog box template, but may be created directly with CreateWindow, or with the application's own dialog box template system.
You can try to extract resources from all .dll and the .exe of the application to find if there is a dialog box template.
Yes SuperKoko YOU are right . The dialog box has no template because I searched and searched for it. Do u think that user32.dll has something to do with. NOW hoew the exe calls the user32.dll for this box it must be a subroutine or something in the EXE. If I disassamble the EXE what should I look for.?
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.