Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SHGetSpecialFolderPath or SHGetFolderPath Pin
LunaticFringe5-Dec-09 9:52
LunaticFringe5-Dec-09 9:52 
GeneralRe: SHGetSpecialFolderPath or SHGetFolderPath Pin
Bram van Kampen5-Dec-09 14:28
Bram van Kampen5-Dec-09 14:28 
GeneralRe: SHGetSpecialFolderPath or SHGetFolderPath PinPopular
David Crow5-Dec-09 17:21
David Crow5-Dec-09 17:21 
AnswerRe: SHGetSpecialFolderPath or SHGetFolderPath PinPopular
Iain Clarke, Warrior Programmer5-Dec-09 21:04
Iain Clarke, Warrior Programmer5-Dec-09 21:04 
QuestionWhere to call AnimateWindow during DoModal Pin
emmmatty15-Dec-09 0:27
emmmatty15-Dec-09 0:27 
AnswerRe: Where to call AnimateWindow during DoModal Pin
«_Superman_»5-Dec-09 4:55
professional«_Superman_»5-Dec-09 4:55 
QuestionApplication hangs when entering dialog procedure Pin
Sauce!4-Dec-09 22:32
Sauce!4-Dec-09 22:32 
AnswerRe: Application hangs when entering dialog procedure Pin
Sauce!5-Dec-09 3:43
Sauce!5-Dec-09 3:43 
I've tracked down the problem and found a solution.

In my .rc file I had the following:

IDD_ABOUT DIALOGEX 0, 0, 219, 110
STYLE DS_SYSMODAL | DS_SETFONT | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "About"
FONT 8, "MS Shell Dlg", 400, 0, 0x0
BEGIN
    CTEXT           "Lorem Ipsum",IDC_STATIC,7,7,205,96
    PUSHBUTTON      "OK",IDC_ABOUT_OK,84,89,50,14
END

IDD_IMGPROPS DIALOGEX 0, 0, 101, 73
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Image Properties"
FONT 8, "MS Shell Dlg", 400, 0, 0x0
BEGIN
    EDITTEXT        IDC_IMGPROPS_WIDTH,35,7,49,14,ES_AUTOHSCROLL | ES_WANTRETURN | ES_NUMBER
    CTEXT           "Width:\n\n\nHeight:",IDC_STATIC,8,9,27,34
    EDITTEXT        IDC_IMGPROPS_HEIGHT,35,32,49,14,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",IDC_IMGPROPS_SPINW,"msctls_updown32",UDS_ARROWKEYS,84,7,10,14
    CONTROL         "",IDC_IMGPROPS_SPINH,"msctls_updown32",UDS_ARROWKEYS,84,32,10,14
    PUSHBUTTON      "OK",IDC_IMGPROPS_OK,25,52,50,14
END


The problem seemed to be the window style of the second dialog box. Replacing it with the same style as the first one solved it.

What then is it, about the combination of the flags DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE | WS_CAPTION | WS_SYSMENU that caused my dialog to recieve a constant stream of WM_GETICON messages?
QuestionSHGetSpecialFolderPath Pin
includeh104-Dec-09 22:15
includeh104-Dec-09 22:15 
AnswerRe: SHGetSpecialFolderPath Pin
MsmVc4-Dec-09 23:44
MsmVc4-Dec-09 23:44 
GeneralRe: SHGetSpecialFolderPath Pin
includeh105-Dec-09 9:40
includeh105-Dec-09 9:40 
GeneralRe: SHGetSpecialFolderPath PinPopular
LunaticFringe5-Dec-09 10:10
LunaticFringe5-Dec-09 10:10 
GeneralRe: SHGetSpecialFolderPath Pin
MsmVc6-Dec-09 18:01
MsmVc6-Dec-09 18:01 
AnswerRe: SHGetSpecialFolderPath Pin
Iain Clarke, Warrior Programmer5-Dec-09 3:01
Iain Clarke, Warrior Programmer5-Dec-09 3:01 
QuestionDrive Letters (More than 26 Drives??) Pin
Bram van Kampen4-Dec-09 16:09
Bram van Kampen4-Dec-09 16:09 
AnswerRe: Drive Letters (More than 26 Drives??) Pin
«_Superman_»4-Dec-09 17:38
professional«_Superman_»4-Dec-09 17:38 
AnswerRe: Drive Letters (More than 26 Drives??) Pin
Iain Clarke, Warrior Programmer5-Dec-09 3:05
Iain Clarke, Warrior Programmer5-Dec-09 3:05 
GeneralRe: Drive Letters (More than 26 Drives??) [modified for Typo's] Pin
Bram van Kampen5-Dec-09 14:06
Bram van Kampen5-Dec-09 14:06 
QuestionRe: Drive Letters (More than 26 Drives??) [modified for Typo's] Pin
David Crow5-Dec-09 17:17
David Crow5-Dec-09 17:17 
GeneralRe: Drive Letters (More than 26 Drives??) [modified for Typo's] Pin
Iain Clarke, Warrior Programmer5-Dec-09 20:59
Iain Clarke, Warrior Programmer5-Dec-09 20:59 
AnswerRe: Drive Letters (More than 26 Drives??) Pin
David Crow5-Dec-09 17:19
David Crow5-Dec-09 17:19 
GeneralRe: Drive Letters (More than 26 Drives??) Pin
Bram van Kampen9-Dec-09 15:48
Bram van Kampen9-Dec-09 15:48 
QuestionAddAceToObjectsSecurityDescriptor problem Pin
RomTibi4-Dec-09 8:01
RomTibi4-Dec-09 8:01 
QuestionHow do I control what files get compiled? Pin
Interrobang4-Dec-09 6:36
Interrobang4-Dec-09 6:36 
AnswerRe: How do I control what files get compiled? [modified] Pin
transoft4-Dec-09 6:45
transoft4-Dec-09 6:45 

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.