FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Dobbs M-Dev
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
November 01, 2002

An Application-Crashing Windows Bug

(Page 4 of 4)
November 2002/User Interface Programming

Listing 2 Resource script for the crash-test dialog


#include <windows.h>
#include "resource.h"

IDD_DIALOG DIALOG DISCARDABLE  0, 0, 65, 153
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON "Button1",IDC_BUTTON1,7,7,50,14
    PUSHBUTTON "Button2",IDC_BUTTON2,7,25,50,14
    PUSHBUTTON "Button3",IDC_BUTTON3,7,43,50,14
    PUSHBUTTON "Button4",IDC_BUTTON4,7,61,50,14
    PUSHBUTTON "Button5",IDC_BUTTON5,8,79,50,14
    PUSHBUTTON "Button6",IDC_BUTTON6,7,97,50,14
    PUSHBUTTON "Button7",IDC_BUTTON7,7,115,50,14
    PUSHBUTTON "Button8",IDC_BUTTON8,7,133,50,14
END

Previous Page | 1 | 2 | 3 | 4
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK