├── .gitignore ├── Samples ├── Chap01 │ └── HelloMsg │ │ └── HelloMsg.d ├── Chap02 │ └── ScrnSize │ │ └── ScrnSize.d ├── Chap03 │ └── HelloWin │ │ ├── HelloWin.d │ │ └── HelloWin.wav ├── Chap04 │ ├── SysMets1 │ │ └── SysMets1.d │ ├── SysMets2 │ │ └── SysMets2.d │ └── SysMets3 │ │ └── SysMets3.d ├── Chap05 │ ├── AltWind │ │ └── AltWind.d │ ├── Bezier │ │ └── Bezier.d │ ├── Clover │ │ └── Clover.d │ ├── DevCaps1 │ │ └── DevCaps1.d │ ├── LineDemo │ │ └── LineDemo.d │ ├── RandRect │ │ └── RandRect.d │ ├── SineWave │ │ └── SineWave.d │ └── WhatSize │ │ └── WhatSize.d ├── Chap06 │ ├── KeyView1 │ │ └── KeyView1.d │ ├── KeyView2 │ │ └── KeyView2.d │ ├── StokFont │ │ └── StokFont.d │ ├── SysMets4 │ │ └── SysMets4.d │ └── Typer │ │ └── Typer.d ├── Chap07 │ ├── BlokOut1 │ │ └── BlokOut1.d │ ├── BlokOut2 │ │ └── BlokOut2.d │ ├── Checker1 │ │ └── Checker1.d │ ├── Checker2 │ │ └── Checker2.d │ ├── Checker3 │ │ └── Checker3.d │ ├── Checker4 │ │ └── Checker4.d │ ├── Connect │ │ └── Connect.d │ └── SysMets │ │ └── SysMets.d ├── Chap08 │ ├── Beeper1 │ │ └── Beeper1.d │ ├── Beeper2 │ │ └── Beeper2.d │ ├── Clock │ │ └── Clock.d │ ├── DigiClock │ │ └── DigiClock.d │ └── WhatClr │ │ └── WhatClr.d ├── Chap09 │ ├── BtnLook │ │ └── BtnLook.d │ ├── Colors1 │ │ └── Colors1.d │ ├── Environ │ │ └── Environ.d │ ├── OwnDraw │ │ └── OwnDraw.d │ ├── PopPad1 │ │ └── PopPad1.d │ └── head │ │ └── head.d ├── Chap10 │ ├── IconDemo │ │ ├── IconDemo.d │ │ ├── IconDemo.rc │ │ ├── IconDemo.res │ │ ├── icondemo.ico │ │ ├── resource.d │ │ └── resource.h │ ├── MenuDemo │ │ ├── MenuDemo.d │ │ ├── MenuDemo.rc │ │ ├── MenuDemo.res │ │ ├── resource.d │ │ └── resource.h │ ├── NoPopups │ │ ├── NoPopups.d │ │ ├── NoPopups.rc │ │ ├── NoPopups.res │ │ ├── resource.d │ │ └── resource.h │ ├── PoePoem │ │ ├── POEPOEM.ICO │ │ ├── POEPOEM.TXT │ │ ├── PoePoem.d │ │ ├── PoePoem.rc │ │ ├── PoePoem.res │ │ ├── resource.d │ │ └── resource.h │ ├── PoorMenu │ │ └── PoorMenu.d │ ├── PopMenu │ │ ├── PopMenu.d │ │ ├── PopMenu.rc │ │ ├── PopMenu.res │ │ ├── resource.d │ │ └── resource.h │ └── PopPad2 │ │ ├── PopPad2.d │ │ ├── PopPad2.rc │ │ ├── poppad2.ico │ │ ├── poppad2.res │ │ ├── resource.d │ │ └── resource.h ├── Chap11 │ ├── About1 │ │ ├── About1.d │ │ ├── About1.ico │ │ ├── About1.rc │ │ ├── About1.res │ │ ├── resource.d │ │ └── resource.h │ ├── About2 │ │ ├── About2.d │ │ ├── About2.ico │ │ ├── About2.rc │ │ ├── About2.res │ │ ├── RESOURCE.d │ │ └── resource.H │ ├── About3 │ │ ├── About3.d │ │ ├── About3.rc │ │ ├── About3.res │ │ ├── ICON1.ICO │ │ ├── RESOURCE.d │ │ └── resource.H │ ├── Colors2 │ │ ├── Colors2.d │ │ ├── Colors2.rc │ │ ├── Colors2.res │ │ ├── resource.d │ │ └── resource.h │ ├── Colors3 │ │ └── Colors3.d │ ├── HexCalc │ │ ├── HexCalc.d │ │ ├── HexCalc.dlg │ │ ├── HexCalc.ico │ │ ├── HexCalc.rc │ │ ├── HexCalc.res │ │ ├── resource.d │ │ └── resource.h │ └── PopPad3 │ │ ├── POPPAD.ICO │ │ ├── POPPAD.RC │ │ ├── POPPAD.res │ │ ├── PopFile.d │ │ ├── PopFind.d │ │ ├── PopFont.d │ │ ├── PopPad3.d │ │ ├── resource.d │ │ └── resource.h ├── Chap12 │ ├── ClipText │ │ ├── ClipText.d │ │ ├── ClipText.rc │ │ ├── ClipText.res │ │ ├── resource.d │ │ └── resource.h │ └── ClipView │ │ └── ClipView.d ├── Chap13 │ ├── DevCaps2 │ │ ├── DevCaps2.d │ │ ├── DevCaps2.pdb │ │ ├── DevCaps2.rc │ │ ├── DevCaps2.res │ │ ├── resource.d │ │ └── resource.h │ ├── FormFeed │ │ └── FormFeed.d │ ├── PopPad │ │ ├── POPPAD.ICO │ │ ├── POPPAD.RC │ │ ├── POPPAD.res │ │ ├── PopFile.d │ │ ├── PopFind.d │ │ ├── PopFont.d │ │ ├── PopPad.d │ │ ├── PopPrnt.d │ │ ├── Uxtheme.lib │ │ ├── gdi32.lib │ │ ├── resource.d │ │ ├── resource.h │ │ ├── uxthemed.lib │ │ └── win32.lib │ ├── Print1 │ │ └── Print.d │ ├── Print2 │ │ └── Print2.d │ └── Print3 │ │ ├── Print.rc │ │ ├── Print.res │ │ ├── Print3.d │ │ ├── resource.d │ │ └── resource.h ├── Chap14 │ ├── BitBlt │ │ └── BitBlt.d │ ├── BitMask │ │ ├── BitMask.d │ │ ├── BitMask.rc │ │ ├── BitMask.res │ │ ├── block.bmp │ │ ├── resource.d │ │ └── resource.h │ ├── Blowup │ │ ├── Blowup.d │ │ ├── Blowup.rc │ │ ├── Blowup.res │ │ ├── resource.d │ │ └── resource.h │ ├── Bounce │ │ └── Bounce.d │ ├── Bricks1 │ │ ├── Bricks.bmp │ │ ├── Bricks1.d │ │ ├── Bricks1.rc │ │ ├── Bricks1.res │ │ ├── resource.d │ │ └── resource.h │ ├── Bricks2 │ │ └── Bricks2.d │ ├── Bricks3 │ │ ├── BRICKS3.RC │ │ ├── BRICKS3.res │ │ ├── Bricks.bmp │ │ ├── Bricks3.d │ │ ├── resource.d │ │ └── resource.h │ ├── GrafMenu │ │ ├── Bighelp.bmp │ │ ├── Editlabl.bmp │ │ ├── Filelabl.bmp │ │ ├── Fontlabl.bmp │ │ ├── GrafMenu.d │ │ ├── GrafMenu.rc │ │ ├── GrafMenu.res │ │ ├── resource.d │ │ └── resource.h │ ├── HelloBit │ │ ├── HelloBit.d │ │ ├── HelloBit.rc │ │ ├── HelloBit.res │ │ ├── resource.d │ │ └── resource.h │ ├── Scramble │ │ └── Scramble.d │ ├── Sketch │ │ └── Sketch.d │ └── Stretch │ │ └── Stretch.d ├── Chap15 │ ├── Apollo11 │ │ ├── Apollo11.bmp │ │ ├── Apollo11.d │ │ ├── ApolloTD.bmp │ │ └── DibFile.d │ ├── DibConv │ │ ├── DibConv.d │ │ ├── DibConv.rc │ │ ├── DibConv.res │ │ ├── resource.d │ │ └── resource.h │ ├── DibHeads │ │ ├── DibHeads.d │ │ ├── DibHeads.rc │ │ ├── DibHeads.res │ │ ├── resource.d │ │ └── resource.h │ ├── DibSect │ │ ├── DibSect.d │ │ ├── DibSect.rc │ │ ├── DibSect.res │ │ ├── resource.d │ │ └── resource.h │ ├── SeqDisp │ │ ├── SeqDisp.d │ │ ├── SeqDisp.rc │ │ ├── SeqDisp.res │ │ ├── resource.d │ │ └── resource.h │ ├── ShowDib1 │ │ ├── DibFile.d │ │ ├── ShowDib1.d │ │ ├── ShowDib1.rc │ │ ├── ShowDib1.res │ │ ├── resource.d │ │ └── resource.h │ └── ShowDib2 │ │ ├── DibFile.d │ │ ├── ShowDib2.rc │ │ ├── ShowDib2.res │ │ ├── Showdib2.d │ │ ├── resource.d │ │ └── resource.h ├── Chap16 │ └── note.txt ├── Chap17 │ ├── ChosFont │ │ ├── ChosFont.d │ │ ├── ChosFont.rc │ │ ├── ChosFont.res │ │ ├── resource.d │ │ └── resource.h │ ├── EZTest │ │ ├── EZFont.d │ │ ├── EZTest.d │ │ ├── FontDemo.rc │ │ ├── FontDemo.res │ │ ├── resource.d │ │ └── resource.h │ ├── EndJoin │ │ └── EndJoin.d │ ├── FontClip │ │ ├── EZFont.d │ │ ├── FontClip.d │ │ ├── FontClip.rc │ │ ├── FontClip.res │ │ ├── resource.d │ │ └── resource.h │ ├── FontFill │ │ ├── EZFont.d │ │ ├── FontFill.d │ │ ├── FontFill.rc │ │ ├── FontFill.res │ │ ├── resource.d │ │ └── resource.h │ ├── FontOut1 │ │ ├── EZFont.d │ │ ├── FontOut.d │ │ ├── FontOut.rc │ │ ├── FontOut.res │ │ ├── resource.d │ │ └── resource.h │ ├── FontOut2 │ │ ├── EZFont.d │ │ ├── FontOut.d │ │ ├── FontOut.rc │ │ ├── FontOut.res │ │ ├── resource.d │ │ └── resource.h │ ├── FontRot │ │ ├── EZFont.d │ │ ├── FontRot.d │ │ ├── FontRot.rc │ │ ├── FontRot.res │ │ ├── resource.d │ │ └── resource.h │ ├── Justify1 │ │ ├── Justify1.d │ │ ├── Justify1.rc │ │ ├── Justify1.res │ │ ├── resource.d │ │ └── resource.h │ ├── Justify2 │ │ ├── Justify2.d │ │ ├── Justify2.rc │ │ ├── Justify2.res │ │ ├── resource.d │ │ └── resource.h │ ├── PickFont │ │ ├── PickFont.d │ │ ├── PickFont.rc │ │ ├── PickFont.res │ │ ├── resource.d │ │ └── resource.h │ └── UniChars │ │ ├── Unichars.d │ │ ├── Unichars.rc │ │ ├── Unichars.res │ │ ├── resource.d │ │ └── resource.h ├── Chap18 │ ├── Emf1 │ │ └── Emf1.d │ ├── Emf10 │ │ ├── Emf.rc │ │ ├── Emf.res │ │ ├── Emf10.d │ │ ├── resource.d │ │ └── resource.h │ ├── Emf11 │ │ ├── Emf.rc │ │ ├── Emf.res │ │ ├── Emf11.d │ │ ├── emf11.emf │ │ ├── resource.d │ │ └── resource.h │ ├── Emf12 │ │ ├── Emf.rc │ │ ├── Emf.res │ │ ├── Emf12.d │ │ ├── emf12.emf │ │ ├── resource.d │ │ └── resource.h │ ├── Emf13 │ │ ├── Emf.rc │ │ ├── Emf.res │ │ ├── Emf13.d │ │ ├── resource.d │ │ └── resource.h │ ├── Emf2 │ │ ├── Emf2.d │ │ └── emf2.emf │ ├── Emf3 │ │ ├── Emf3.d │ │ └── emf3.emf │ ├── Emf4 │ │ ├── Emf4.d │ │ └── emf4.emf │ ├── Emf5 │ │ └── Emf5.d │ ├── Emf6 │ │ ├── Emf6.d │ │ ├── Emf6.pdb │ │ └── emf3.emf │ ├── Emf7 │ │ ├── Emf7.d │ │ └── emf7.emf │ ├── Emf8 │ │ ├── Emf.rc │ │ ├── Emf.res │ │ ├── Emf8.d │ │ ├── emf8.emf │ │ ├── resource.d │ │ └── resource.h │ ├── Emf9 │ │ ├── Emf.rc │ │ ├── Emf.res │ │ ├── Emf9.d │ │ ├── resource.d │ │ └── resource.h │ ├── EmfView │ │ ├── EmfView.d │ │ ├── EmfView.rc │ │ ├── EmfView.res │ │ ├── resource.d │ │ └── resource.h │ └── Metafile │ │ └── Metafile.d ├── Chap19 │ └── MDIDemo │ │ ├── MDIDemo.d │ │ ├── MDIDemo.rc │ │ ├── MDIDemo.res │ │ ├── resource.d │ │ └── resource.h ├── Chap20 │ ├── BigJob1 │ │ └── BigJob1.d │ ├── BigJob2 │ │ └── BigJob2.d │ ├── Multi1 │ │ └── Multi1.d │ ├── Multi2 │ │ └── Multi2.d │ └── RndRctMT │ │ └── RndRctMT.d ├── Chap21 │ ├── EdrTest │ │ ├── .gitignore │ │ ├── EdrLib.d │ │ ├── EdrLib.di │ │ ├── EdrTest.d │ │ ├── broken_gdc_build.bat │ │ ├── dmd_build.bat │ │ ├── mydll.d │ │ └── mydll.di │ ├── ShowBit │ │ ├── BITMAP1.BMP │ │ ├── BITMAP2.BMP │ │ ├── BITMAP3.BMP │ │ ├── BITMAP4.BMP │ │ ├── BITMAP5.BMP │ │ ├── BITMAP6.BMP │ │ ├── BITMAP7.BMP │ │ ├── BITMAP8.BMP │ │ ├── BITMAP9.BMP │ │ ├── BitLib.d │ │ ├── BitLib.rc │ │ ├── BitLib.res │ │ ├── ShowBit.d │ │ ├── dmd_build.bat │ │ └── resource.h │ └── StrProg │ │ ├── StrLib.d │ │ ├── StrProg.d │ │ ├── StrProg.rc │ │ ├── StrProg.res │ │ ├── dllmodule.d │ │ ├── dmd_build.bat │ │ ├── resource.d │ │ └── resource.h ├── Chap22 │ ├── AddSynth │ │ ├── AddSynth.d │ │ ├── AddSynth.rc │ │ ├── AddSynth.res │ │ ├── Clarinet.wav │ │ ├── Oboe.wav │ │ ├── Trumpet.wav │ │ ├── WaveTable.d │ │ ├── resource.d │ │ └── resource.h │ ├── BachTocc │ │ └── BachTocc.d │ ├── Drum │ │ ├── DRUM.ICO │ │ ├── Drum.d │ │ ├── Drum.rc │ │ ├── Drum.res │ │ ├── DrumFile.d │ │ ├── DrumTime.d │ │ ├── resource.d │ │ └── resource.h │ ├── KBMidi │ │ └── KBMidi.d │ ├── SineWave │ │ ├── SineWave.d │ │ ├── SineWave.rc │ │ ├── SineWave.res │ │ ├── resource.d │ │ └── resource.h │ ├── TestMci │ │ ├── TestMci.d │ │ ├── TestMci.rc │ │ ├── TestMci.res │ │ ├── resource.d │ │ └── resource.h │ ├── WakeUp │ │ └── WakeUp.d │ └── todo │ │ ├── Record1 │ │ ├── Record.rc │ │ ├── Record.res │ │ ├── Record1.c │ │ ├── Record1.d │ │ ├── resource.d │ │ └── resource.h │ │ ├── Record2 │ │ └── Record2.c │ │ └── Record3 │ │ └── Record3.c ├── Chap23 │ └── NetTime │ │ ├── NetTime.d │ │ ├── NetTime.rc │ │ ├── NetTime.res │ │ ├── resource.d │ │ └── resource.h ├── Extra │ ├── AlphaBlend │ │ └── AlphaBlend.d │ ├── BackBuffer │ │ └── BackBuffer.d │ ├── Cartesian │ │ └── Cartesian.d │ ├── DragDrop │ │ ├── SciTEDirectory.properties │ │ ├── build.bat │ │ ├── drop_source │ │ │ ├── SciTEDirectory.properties │ │ │ ├── build.bat │ │ │ ├── data_object.d │ │ │ ├── enum_format.d │ │ │ ├── main.d │ │ │ ├── make_resource.bat │ │ │ ├── resource.d │ │ │ ├── resource.h │ │ │ ├── resource.rc │ │ │ ├── resource.res │ │ │ └── source.d │ │ ├── drop_target │ │ │ ├── SciTEDirectory.properties │ │ │ ├── build.bat │ │ │ ├── main.d │ │ │ ├── make_resource.bat │ │ │ ├── resource.d │ │ │ ├── resource.h │ │ │ ├── resource.rc │ │ │ ├── resource.res │ │ │ └── target.d │ │ ├── lib │ │ │ └── win32 │ │ │ │ └── .gitignore │ │ ├── list_clipboard │ │ │ ├── SciTEDirectory.properties │ │ │ ├── build.bat │ │ │ ├── dataobjview.rc │ │ │ ├── dataobjview.res │ │ │ ├── icon1.ico │ │ │ ├── main.d │ │ │ ├── make_resource.bat │ │ │ ├── resource.d │ │ │ └── resource.h │ │ ├── readme.md │ │ ├── save_clipboard │ │ │ ├── data_object.d │ │ │ ├── enum_format.d │ │ │ └── main.d │ │ ├── show_clipboard │ │ │ └── main.d │ │ └── utils │ │ │ └── com.d │ ├── HookSample1 │ │ ├── HookSample1.d │ │ ├── SciTEDirectory.properties │ │ ├── build.bat │ │ ├── resource.d │ │ ├── resource.h │ │ ├── resource.rc │ │ └── resource.res │ ├── HookSample2 │ │ ├── HookSample2.d │ │ ├── SciTEDirectory.properties │ │ ├── build.bat │ │ ├── resource.d │ │ ├── resource.h │ │ ├── resource.rc │ │ └── resource.res │ ├── Pipes │ │ ├── Pipes.d │ │ ├── build.bat │ │ └── empty.txt │ ├── RedirectChildHandle │ │ ├── RedirectChildHandle.d │ │ └── empty.txt │ ├── RedirectChildHandleThreaded │ │ ├── RedirectChildHandleThreaded.d │ │ └── empty.txt │ ├── RedirectStdoutGui │ │ ├── RedirectStdoutGui.d │ │ └── subprocess │ │ │ └── subprocess.d │ ├── SetAffinity │ │ └── SetAffinity.d │ ├── Subclass │ │ └── Subclass.d │ ├── Superclass │ │ └── Superclass.d │ ├── ThemedSimpleWakeUp │ │ ├── ThemedSimpleWakeUp.d │ │ ├── enable-theme.xml │ │ ├── resource.rc │ │ └── resource.res │ ├── ThemedWakeUp │ │ ├── ThemedWakeUp.d │ │ └── VisualStyles.d │ ├── VisualStyles │ │ ├── VisualStyles.d │ │ ├── enable-theme.xml │ │ ├── resource.rc │ │ ├── resource.res │ │ ├── uxSchema.d │ │ └── uxTheme.d │ └── VisualStyles2 │ │ ├── VisualStyles2.d │ │ ├── enable-theme.xml │ │ ├── resource.rc │ │ ├── resource.res │ │ ├── uxSchema.d │ │ └── uxTheme.d └── main_prototype.d ├── Uxtheme.lib ├── build.d ├── dmd_win32.lib ├── examples.txt ├── gdc_win32.lib ├── gdi32.def ├── gdi32.lib ├── gdmd.bat ├── libcomctl32.a ├── libgdi32.a ├── libuxtheme.a ├── libwinmm.a ├── libwinspool.a ├── libws2_32.a ├── make_build.bat ├── porting.txt ├── readme.md └── uxthemed.lib /.gitignore: -------------------------------------------------------------------------------- 1 | build.exe 2 | win32.txt 3 | todo.txt 4 | todo2.txt 5 | appendLicense.d 6 | license.txt 7 | build.d.deps 8 | /Samples/Extra2/* 9 | /Samples/MSDN/* 10 | /Samples/*.lib 11 | build-d-* 12 | *.rar 13 | *.obj 14 | *.dat 15 | *.exe 16 | *.o 17 | *.di 18 | *.dll 19 | *.lib 20 | -------------------------------------------------------------------------------- /Samples/Chap01/HelloMsg/HelloMsg.d: -------------------------------------------------------------------------------- 1 | /+ 2 | + Copyright (c) Charles Petzold, 1998. 3 | + Ported to the D Programming Language by Andrej Mitrovic, 2011. 4 | +/ 5 | 6 | module HelloMsg; 7 | 8 | import core.runtime; 9 | import std.utf; 10 | 11 | import core.sys.windows.windef; 12 | import core.sys.windows.winuser; 13 | 14 | extern (Windows) 15 | int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) 16 | { 17 | int result; 18 | 19 | try 20 | { 21 | Runtime.initialize(); 22 | result = myWinMain(hInstance, hPrevInstance, lpCmdLine, iCmdShow); 23 | Runtime.terminate(); 24 | } 25 | catch (Throwable o) 26 | { 27 | MessageBox(null, o.toString().toUTF16z, "Error", MB_OK | MB_ICONEXCLAMATION); 28 | result = 0; 29 | } 30 | 31 | return result; 32 | } 33 | 34 | int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) 35 | { 36 | MessageBox(NULL, "Hello, Windows!", "Your Application", 0); 37 | return 0; 38 | } 39 | -------------------------------------------------------------------------------- /Samples/Chap02/ScrnSize/ScrnSize.d: -------------------------------------------------------------------------------- 1 | /+ 2 | + Copyright (c) Charles Petzold, 1998. 3 | + Ported to the D Programming Language by Andrej Mitrovic, 2011. 4 | +/ 5 | 6 | module ScrnSize; 7 | 8 | import core.runtime; 9 | import std.string; 10 | import std.utf; 11 | 12 | pragma(lib, "gdi32.lib"); 13 | 14 | import core.sys.windows.windef; 15 | import core.sys.windows.winuser; 16 | import core.sys.windows.wingdi; 17 | 18 | extern (Windows) 19 | int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) 20 | { 21 | int result; 22 | 23 | try 24 | { 25 | Runtime.initialize(); 26 | result = myWinMain(hInstance, hPrevInstance, lpCmdLine, iCmdShow); 27 | Runtime.terminate(); 28 | } 29 | catch (Throwable o) 30 | { 31 | MessageBox(null, o.toString().toUTF16z, "Error", MB_OK | MB_ICONEXCLAMATION); 32 | result = 0; 33 | } 34 | 35 | return result; 36 | } 37 | 38 | int myWinMain(HINSTANCE hInstance, 39 | HINSTANCE hPrevInstance, 40 | LPSTR lpCmdLine, 41 | int iCmdShow) 42 | { 43 | int cxScreen, cyScreen; 44 | 45 | cxScreen = GetSystemMetrics(SM_CXSCREEN); 46 | cyScreen = GetSystemMetrics(SM_CYSCREEN); 47 | 48 | auto echo = format("The screen is %s pixels wide by %s pixels high.", 49 | cxScreen, cyScreen).toUTF16z; 50 | 51 | MessageBox(NULL, echo, "Screen Size", 0); 52 | 53 | return 0; 54 | } 55 | -------------------------------------------------------------------------------- /Samples/Chap03/HelloWin/HelloWin.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap03/HelloWin/HelloWin.wav -------------------------------------------------------------------------------- /Samples/Chap10/IconDemo/IconDemo.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Icon 53 | // 54 | 55 | // Icon with lowest ID value placed first to ensure application icon 56 | // remains consistent on all systems. 57 | IDI_ICON ICON DISCARDABLE "icondemo.ico" 58 | #endif // English (U.S.) resources 59 | ///////////////////////////////////////////////////////////////////////////// 60 | 61 | 62 | 63 | #ifndef APSTUDIO_INVOKED 64 | ///////////////////////////////////////////////////////////////////////////// 65 | // 66 | // Generated from the TEXTINCLUDE 3 resource. 67 | // 68 | 69 | 70 | ///////////////////////////////////////////////////////////////////////////// 71 | #endif // not APSTUDIO_INVOKED 72 | 73 | -------------------------------------------------------------------------------- /Samples/Chap10/IconDemo/IconDemo.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap10/IconDemo/IconDemo.res -------------------------------------------------------------------------------- /Samples/Chap10/IconDemo/icondemo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap10/IconDemo/icondemo.ico -------------------------------------------------------------------------------- /Samples/Chap10/IconDemo/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by IconDemo.rc 6 | // 7 | //C #define IDI_ICON 101 8 | 9 | const IDI_ICON = 101; 10 | // Next default values for new objects 11 | // 12 | //C #ifdef APSTUDIO_INVOKED 13 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 14 | //C #define _APS_NEXT_RESOURCE_VALUE 106 15 | //C #define _APS_NEXT_COMMAND_VALUE 40001 16 | //C #define _APS_NEXT_CONTROL_VALUE 1000 17 | //C #define _APS_NEXT_SYMED_VALUE 101 18 | //C #endif 19 | //C #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap10/IconDemo/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by IconDemo.rc 4 | // 5 | #define IDI_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 106 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1000 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Samples/Chap10/MenuDemo/MenuDemo.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap10/MenuDemo/MenuDemo.res -------------------------------------------------------------------------------- /Samples/Chap10/MenuDemo/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by MenuDemo.rc 4 | // 5 | #define IDM_FILE_NEW 40001 6 | #define IDM_FILE_OPEN 40002 7 | #define IDM_FILE_SAVE 40003 8 | #define IDM_FILE_SAVE_AS 40004 9 | #define IDM_APP_EXIT 40005 10 | #define IDM_EDIT_UNDO 40006 11 | #define IDM_EDIT_CUT 40007 12 | #define IDM_EDIT_COPY 40008 13 | #define IDM_EDIT_PASTE 40009 14 | #define IDM_EDIT_CLEAR 40010 15 | #define IDM_BKGND_WHITE 40011 16 | #define IDM_BKGND_LTGRAY 40012 17 | #define IDM_BKGND_GRAY 40013 18 | #define IDM_BKGND_DKGRAY 40014 19 | #define IDM_BKGND_BLACK 40015 20 | #define IDM_TIMER_START 40016 21 | #define IDM_TIMER_STOP 40017 22 | #define IDM_APP_HELP 40018 23 | #define IDM_APP_ABOUT 40019 24 | #define ID_MENUITEM40020 40020 25 | 26 | // Next default values for new objects 27 | // 28 | #ifdef APSTUDIO_INVOKED 29 | #ifndef APSTUDIO_READONLY_SYMBOLS 30 | #define _APS_NEXT_RESOURCE_VALUE 102 31 | #define _APS_NEXT_COMMAND_VALUE 40021 32 | #define _APS_NEXT_CONTROL_VALUE 1000 33 | #define _APS_NEXT_SYMED_VALUE 101 34 | #endif 35 | #endif 36 | -------------------------------------------------------------------------------- /Samples/Chap10/NoPopups/NoPopups.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap10/NoPopups/NoPopups.res -------------------------------------------------------------------------------- /Samples/Chap10/NoPopups/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap10\NoPopups\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by NoPopups.rc 6 | // 7 | //C #define IDM_FILE 40001 8 | //C #define IDM_EDIT 40002 9 | const IDM_FILE = 40001; 10 | //C #define IDM_FILE_NEW 40003 11 | const IDM_EDIT = 40002; 12 | //C #define IDM_FILE_OPEN 40004 13 | const IDM_FILE_NEW = 40003; 14 | //C #define IDM_FILE_SAVE 40005 15 | const IDM_FILE_OPEN = 40004; 16 | //C #define IDM_FILE_SAVE_AS 40006 17 | const IDM_FILE_SAVE = 40005; 18 | //C #define IDM_MAIN 40007 19 | const IDM_FILE_SAVE_AS = 40006; 20 | //C #define IDM_EDIT_UNDO 40008 21 | const IDM_MAIN = 40007; 22 | //C #define IDM_EDIT_CUT 40009 23 | const IDM_EDIT_UNDO = 40008; 24 | //C #define IDM_EDIT_COPY 40010 25 | const IDM_EDIT_CUT = 40009; 26 | //C #define IDM_EDIT_PASTE 40011 27 | const IDM_EDIT_COPY = 40010; 28 | //C #define IDM_EDIT_CLEAR 40012 29 | const IDM_EDIT_PASTE = 40011; 30 | 31 | const IDM_EDIT_CLEAR = 40012; 32 | // Next default values for new objects 33 | // 34 | //C #ifdef APSTUDIO_INVOKED 35 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 36 | //C #define _APS_NEXT_RESOURCE_VALUE 104 37 | //C #define _APS_NEXT_COMMAND_VALUE 40013 38 | //C #define _APS_NEXT_CONTROL_VALUE 1000 39 | //C #define _APS_NEXT_SYMED_VALUE 101 40 | //C #endif 41 | //C #endif 42 | -------------------------------------------------------------------------------- /Samples/Chap10/NoPopups/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by NoPopups.rc 4 | // 5 | #define IDM_FILE 40001 6 | #define IDM_EDIT 40002 7 | #define IDM_FILE_NEW 40003 8 | #define IDM_FILE_OPEN 40004 9 | #define IDM_FILE_SAVE 40005 10 | #define IDM_FILE_SAVE_AS 40006 11 | #define IDM_MAIN 40007 12 | #define IDM_EDIT_UNDO 40008 13 | #define IDM_EDIT_CUT 40009 14 | #define IDM_EDIT_COPY 40010 15 | #define IDM_EDIT_PASTE 40011 16 | #define IDM_EDIT_CLEAR 40012 17 | 18 | // Next default values for new objects 19 | // 20 | #ifdef APSTUDIO_INVOKED 21 | #ifndef APSTUDIO_READONLY_SYMBOLS 22 | #define _APS_NEXT_RESOURCE_VALUE 104 23 | #define _APS_NEXT_COMMAND_VALUE 40013 24 | #define _APS_NEXT_CONTROL_VALUE 1000 25 | #define _APS_NEXT_SYMED_VALUE 101 26 | #endif 27 | #endif 28 | -------------------------------------------------------------------------------- /Samples/Chap10/PoePoem/POEPOEM.ICO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap10/PoePoem/POEPOEM.ICO -------------------------------------------------------------------------------- /Samples/Chap10/PoePoem/POEPOEM.TXT: -------------------------------------------------------------------------------- 1 | It was many and many a year ago, 2 | In a kingdom by the sea, 3 | That a maiden there lived whom you may know 4 | By the name of Annabel Lee; 5 | And this maiden she lived with no other thought 6 | Than to love and be loved by me. 7 | 8 | I was a child and she was a child 9 | In this kingdom by the sea, 10 | But we loved with a love that was more than love -- 11 | I and my Annabel Lee -- 12 | With a love that the winged seraphs of Heaven 13 | Coveted her and me. 14 | 15 | And this was the reason that, long ago, 16 | In this kingdom by the sea, 17 | A wind blew out of a cloud, chilling 18 | My beautiful Annabel Lee; 19 | So that her highborn kinsmen came 20 | And bore her away from me, 21 | To shut her up in a sepulchre 22 | In this kingdom by the sea. 23 | 24 | The angels, not half so happy in Heaven, 25 | Went envying her and me -- 26 | Yes! that was the reason (as all men know, 27 | In this kingdom by the sea) 28 | That the wind came out of the cloud by night, 29 | Chilling and killing my Annabel Lee. 30 | 31 | But our love it was stronger by far than the love 32 | Of those who were older than we -- 33 | Of many far wiser than we -- 34 | And neither the angels in Heaven above 35 | Nor the demons down under the sea 36 | Can ever dissever my soul from the soul 37 | Of the beautiful Annabel Lee: 38 | 39 | For the moon never beams, without bringing me dreams 40 | Of the beautiful Annabel Lee; 41 | And the stars never rise, but I feel the bright eyes 42 | Of the beautiful Annabel Lee: 43 | And so, all the night-tide, I lie down by the side 44 | Of my darling -- my darling -- my life and my bride, 45 | In her sepulchre there by the sea -- 46 | In her tomb by the sounding sea. 47 | 48 | [May, 1849] 49 | \ 50 | -------------------------------------------------------------------------------- /Samples/Chap10/PoePoem/PoePoem.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap10/PoePoem/PoePoem.res -------------------------------------------------------------------------------- /Samples/Chap10/PoePoem/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap10\PoePoem\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by PoePoem.rc 6 | // 7 | //C #define IDS_APPNAME 1 8 | //C #define IDS_CAPTION 2 9 | const IDS_APPNAME = 1; 10 | //C #define IDS_ERRMSG 3 11 | const IDS_CAPTION = 2; 12 | 13 | const IDS_ERRMSG = 3; 14 | // Next default values for new objects 15 | // 16 | //C #ifdef APSTUDIO_INVOKED 17 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 18 | //C #define _APS_NEXT_RESOURCE_VALUE 103 19 | //C #define _APS_NEXT_COMMAND_VALUE 40001 20 | //C #define _APS_NEXT_CONTROL_VALUE 1000 21 | //C #define _APS_NEXT_SYMED_VALUE 101 22 | //C #endif 23 | //C #endif 24 | -------------------------------------------------------------------------------- /Samples/Chap10/PoePoem/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by PoePoem.rc 4 | // 5 | #define IDS_APPNAME 1 6 | #define IDS_CAPTION 2 7 | #define IDS_ERRMSG 3 8 | 9 | // Next default values for new objects 10 | // 11 | #ifdef APSTUDIO_INVOKED 12 | #ifndef APSTUDIO_READONLY_SYMBOLS 13 | #define _APS_NEXT_RESOURCE_VALUE 103 14 | #define _APS_NEXT_COMMAND_VALUE 40001 15 | #define _APS_NEXT_CONTROL_VALUE 1000 16 | #define _APS_NEXT_SYMED_VALUE 101 17 | #endif 18 | #endif 19 | -------------------------------------------------------------------------------- /Samples/Chap10/PopMenu/PopMenu.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap10/PopMenu/PopMenu.res -------------------------------------------------------------------------------- /Samples/Chap10/PopMenu/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by PopMenu.rc 4 | // 5 | #define IDM_FILE_NEW 40001 6 | #define IDM_FILE_OPEN 40002 7 | #define IDM_FILE_SAVE 40003 8 | #define IDM_FILE_SAVE_AS 40004 9 | #define IDM_APP_EXIT 40005 10 | #define IDM_EDIT_UNDO 40006 11 | #define IDM_EDIT_CUT 40007 12 | #define IDM_EDIT_COPY 40008 13 | #define IDM_EDIT_PASTE 40009 14 | #define IDM_EDIT_CLEAR 40010 15 | #define IDM_BKGND_WHITE 40011 16 | #define IDM_BKGND_LTGRAY 40012 17 | #define IDM_BKGND_GRAY 40013 18 | #define IDM_BKGND_DKGRAY 40014 19 | #define IDM_BKGND_BLACK 40015 20 | #define IDM_HELP_HELP 40016 21 | #define IDM_APP_HELP 40016 22 | #define IDM_APP_ABOUT 40017 23 | 24 | // Next default values for new objects 25 | // 26 | #ifdef APSTUDIO_INVOKED 27 | #ifndef APSTUDIO_READONLY_SYMBOLS 28 | #define _APS_NEXT_RESOURCE_VALUE 102 29 | #define _APS_NEXT_COMMAND_VALUE 40018 30 | #define _APS_NEXT_CONTROL_VALUE 1000 31 | #define _APS_NEXT_SYMED_VALUE 101 32 | #endif 33 | #endif 34 | -------------------------------------------------------------------------------- /Samples/Chap10/PopPad2/poppad2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap10/PopPad2/poppad2.ico -------------------------------------------------------------------------------- /Samples/Chap10/PopPad2/poppad2.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap10/PopPad2/poppad2.res -------------------------------------------------------------------------------- /Samples/Chap10/PopPad2/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap10\PopPad2\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by PopPad2.rc 6 | // 7 | //C #define IDM_FILE_NEW 40001 8 | //C #define IDM_FILE_OPEN 40002 9 | const IDM_FILE_NEW = 40001; 10 | //C #define IDM_FILE_SAVE 40003 11 | const IDM_FILE_OPEN = 40002; 12 | //C #define IDM_FILE_SAVE_AS 40004 13 | const IDM_FILE_SAVE = 40003; 14 | //C #define IDM_FILE_PRINT 40005 15 | const IDM_FILE_SAVE_AS = 40004; 16 | //C #define IDM_APP_EXIT 40006 17 | const IDM_FILE_PRINT = 40005; 18 | //C #define IDM_EDIT_UNDO 40007 19 | const IDM_APP_EXIT = 40006; 20 | //C #define IDM_EDIT_CUT 40008 21 | const IDM_EDIT_UNDO = 40007; 22 | //C #define IDM_EDIT_COPY 40009 23 | const IDM_EDIT_CUT = 40008; 24 | //C #define IDM_EDIT_PASTE 40010 25 | const IDM_EDIT_COPY = 40009; 26 | //C #define IDM_EDIT_CLEAR 40011 27 | const IDM_EDIT_PASTE = 40010; 28 | //C #define IDM_EDIT_SELECT_ALL 40012 29 | const IDM_EDIT_CLEAR = 40011; 30 | //C #define IDM_HELP_HELP 40013 31 | const IDM_EDIT_SELECT_ALL = 40012; 32 | //C #define IDM_APP_ABOUT 40014 33 | const IDM_HELP_HELP = 40013; 34 | 35 | const IDM_APP_ABOUT = 40014; 36 | // Next default values for new objects 37 | // 38 | //C #ifdef APSTUDIO_INVOKED 39 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 40 | //C #define _APS_NEXT_RESOURCE_VALUE 104 41 | //C #define _APS_NEXT_COMMAND_VALUE 40015 42 | //C #define _APS_NEXT_CONTROL_VALUE 1000 43 | //C #define _APS_NEXT_SYMED_VALUE 101 44 | //C #endif 45 | //C #endif 46 | -------------------------------------------------------------------------------- /Samples/Chap10/PopPad2/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by PopPad2.rc 4 | // 5 | #define IDM_FILE_NEW 40001 6 | #define IDM_FILE_OPEN 40002 7 | #define IDM_FILE_SAVE 40003 8 | #define IDM_FILE_SAVE_AS 40004 9 | #define IDM_FILE_PRINT 40005 10 | #define IDM_APP_EXIT 40006 11 | #define IDM_EDIT_UNDO 40007 12 | #define IDM_EDIT_CUT 40008 13 | #define IDM_EDIT_COPY 40009 14 | #define IDM_EDIT_PASTE 40010 15 | #define IDM_EDIT_CLEAR 40011 16 | #define IDM_EDIT_SELECT_ALL 40012 17 | #define IDM_HELP_HELP 40013 18 | #define IDM_APP_ABOUT 40014 19 | 20 | // Next default values for new objects 21 | // 22 | #ifdef APSTUDIO_INVOKED 23 | #ifndef APSTUDIO_READONLY_SYMBOLS 24 | #define _APS_NEXT_RESOURCE_VALUE 104 25 | #define _APS_NEXT_COMMAND_VALUE 40015 26 | #define _APS_NEXT_CONTROL_VALUE 1000 27 | #define _APS_NEXT_SYMED_VALUE 101 28 | #endif 29 | #endif 30 | -------------------------------------------------------------------------------- /Samples/Chap11/About1/About1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap11/About1/About1.ico -------------------------------------------------------------------------------- /Samples/Chap11/About1/About1.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap11/About1/About1.res -------------------------------------------------------------------------------- /Samples/Chap11/About1/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap11\About1\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by About1.rc 6 | // 7 | //C #define IDM_APP_ABOUT 40001 8 | 9 | const IDM_APP_ABOUT = 40001; 10 | // Next default values for new objects 11 | // 12 | //C #ifdef APSTUDIO_INVOKED 13 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 14 | //C #define _APS_NEXT_RESOURCE_VALUE 104 15 | //C #define _APS_NEXT_COMMAND_VALUE 40004 16 | //C #define _APS_NEXT_CONTROL_VALUE 1003 17 | //C #define _APS_NEXT_SYMED_VALUE 101 18 | //C #endif 19 | //C #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap11/About1/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by About1.rc 4 | // 5 | #define IDM_APP_ABOUT 40001 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 104 12 | #define _APS_NEXT_COMMAND_VALUE 40004 13 | #define _APS_NEXT_CONTROL_VALUE 1003 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Samples/Chap11/About2/About2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap11/About2/About2.ico -------------------------------------------------------------------------------- /Samples/Chap11/About2/About2.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap11/About2/About2.res -------------------------------------------------------------------------------- /Samples/Chap11/About2/RESOURCE.d: -------------------------------------------------------------------------------- 1 | /+ 2 | + Copyright (c) Charles Petzold, 1998. 3 | + Ported to the D Programming Language by Andrej Mitrovic, 2011. 4 | +/ 5 | 6 | /* Converted to D from resource.h by htod */ 7 | module resource; 8 | //{{NO_DEPENDENCIES}} 9 | // Microsoft Developer Studio generated include file. 10 | // Used by About2.rc 11 | // 12 | //C #define IDC_BLACK 1000 13 | //C #define IDC_BLUE 1001 14 | const IDC_BLACK = 1000; 15 | //C #define IDC_GREEN 1002 16 | const IDC_BLUE = 1001; 17 | //C #define IDC_CYAN 1003 18 | const IDC_GREEN = 1002; 19 | //C #define IDC_RED 1004 20 | const IDC_CYAN = 1003; 21 | //C #define IDC_MAGENTA 1005 22 | const IDC_RED = 1004; 23 | //C #define IDC_YELLOW 1006 24 | const IDC_MAGENTA = 1005; 25 | //C #define IDC_WHITE 1007 26 | const IDC_YELLOW = 1006; 27 | //C #define IDC_RECT 1008 28 | const IDC_WHITE = 1007; 29 | //C #define IDC_ELLIPSE 1009 30 | const IDC_RECT = 1008; 31 | //C #define IDC_PAINT 1010 32 | const IDC_ELLIPSE = 1009; 33 | //C #define IDM_APP_ABOUT 40001 34 | const IDC_PAINT = 1010; 35 | 36 | const IDM_APP_ABOUT = 40001; 37 | // Next default values for new objects 38 | // 39 | //C #ifdef APSTUDIO_INVOKED 40 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 41 | //C #define _APS_NEXT_RESOURCE_VALUE 105 42 | //C #define _APS_NEXT_COMMAND_VALUE 40002 43 | //C #define _APS_NEXT_CONTROL_VALUE 1011 44 | //C #define _APS_NEXT_SYMED_VALUE 101 45 | //C #endif 46 | //C #endif 47 | -------------------------------------------------------------------------------- /Samples/Chap11/About2/resource.H: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by About2.rc 4 | // 5 | #define IDC_BLACK 1000 6 | #define IDC_BLUE 1001 7 | #define IDC_GREEN 1002 8 | #define IDC_CYAN 1003 9 | #define IDC_RED 1004 10 | #define IDC_MAGENTA 1005 11 | #define IDC_YELLOW 1006 12 | #define IDC_WHITE 1007 13 | #define IDC_RECT 1008 14 | #define IDC_ELLIPSE 1009 15 | #define IDC_PAINT 1010 16 | #define IDM_APP_ABOUT 40001 17 | 18 | // Next default values for new objects 19 | // 20 | #ifdef APSTUDIO_INVOKED 21 | #ifndef APSTUDIO_READONLY_SYMBOLS 22 | #define _APS_NEXT_RESOURCE_VALUE 105 23 | #define _APS_NEXT_COMMAND_VALUE 40002 24 | #define _APS_NEXT_CONTROL_VALUE 1011 25 | #define _APS_NEXT_SYMED_VALUE 101 26 | #endif 27 | #endif 28 | -------------------------------------------------------------------------------- /Samples/Chap11/About3/About3.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap11/About3/About3.res -------------------------------------------------------------------------------- /Samples/Chap11/About3/ICON1.ICO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap11/About3/ICON1.ICO -------------------------------------------------------------------------------- /Samples/Chap11/About3/RESOURCE.d: -------------------------------------------------------------------------------- 1 | /+ 2 | + Copyright (c) Charles Petzold, 1998. 3 | + Ported to the D Programming Language by Andrej Mitrovic, 2011. 4 | +/ 5 | 6 | /* Converted to D from resource.h by htod */ 7 | module resource; 8 | //{{NO_DEPENDENCIES}} 9 | // Microsoft Developer Studio generated include file. 10 | // Used by About3.rc 11 | // 12 | //C #define IDM_APP_ABOUT 40001 13 | //C #define IDC_STATIC -1 14 | const IDM_APP_ABOUT = 40001; 15 | 16 | const IDC_STATIC = -1; 17 | // Next default values for new objects 18 | // 19 | //C #ifdef APSTUDIO_INVOKED 20 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 21 | //C #define _APS_NEXT_RESOURCE_VALUE 105 22 | //C #define _APS_NEXT_COMMAND_VALUE 40002 23 | //C #define _APS_NEXT_CONTROL_VALUE 1001 24 | //C #define _APS_NEXT_SYMED_VALUE 101 25 | //C #endif 26 | //C #endif 27 | -------------------------------------------------------------------------------- /Samples/Chap11/About3/resource.H: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by About3.rc 4 | // 5 | #define IDM_APP_ABOUT 40001 6 | #define IDC_STATIC -1 7 | 8 | // Next default values for new objects 9 | // 10 | #ifdef APSTUDIO_INVOKED 11 | #ifndef APSTUDIO_READONLY_SYMBOLS 12 | #define _APS_NEXT_RESOURCE_VALUE 105 13 | #define _APS_NEXT_COMMAND_VALUE 40002 14 | #define _APS_NEXT_CONTROL_VALUE 1001 15 | #define _APS_NEXT_SYMED_VALUE 101 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap11/Colors2/Colors2.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap11/Colors2/Colors2.res -------------------------------------------------------------------------------- /Samples/Chap11/Colors2/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap11\Colors2\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Colors2.rc 6 | // 7 | //C #define IDC_STATIC -1 8 | 9 | const IDC_STATIC = -1; 10 | // Next default values for new objects 11 | // 12 | //C #ifdef APSTUDIO_INVOKED 13 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 14 | //C #define _APS_NEXT_RESOURCE_VALUE 102 15 | //C #define _APS_NEXT_COMMAND_VALUE 40001 16 | //C #define _APS_NEXT_CONTROL_VALUE 1003 17 | //C #define _APS_NEXT_SYMED_VALUE 101 18 | //C #endif 19 | //C #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap11/Colors2/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Colors2.rc 4 | // 5 | #define IDC_STATIC -1 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1003 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Samples/Chap11/Colors3/Colors3.d: -------------------------------------------------------------------------------- 1 | /+ 2 | + Copyright (c) Charles Petzold, 1998. 3 | + Ported to the D Programming Language by Andrej Mitrovic, 2011. 4 | +/ 5 | 6 | module Colors2; 7 | 8 | import core.runtime; 9 | import core.thread; 10 | import std.conv; 11 | import std.math; 12 | import std.range; 13 | import std.string; 14 | import std.utf; 15 | 16 | pragma(lib, "gdi32.lib"); 17 | pragma(lib, "comdlg32.lib"); 18 | 19 | import core.sys.windows.windef; 20 | import core.sys.windows.winuser; 21 | import core.sys.windows.wingdi; 22 | import core.sys.windows.winbase; 23 | import core.sys.windows.commdlg; 24 | 25 | string appName = "Colors2"; 26 | string description = "Color Scroll"; 27 | enum ID_TIMER = 1; 28 | HINSTANCE hinst; 29 | 30 | extern (Windows) 31 | int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) 32 | { 33 | int result; 34 | 35 | try 36 | { 37 | Runtime.initialize(); 38 | result = myWinMain(hInstance, hPrevInstance, lpCmdLine, iCmdShow); 39 | Runtime.terminate(); 40 | } 41 | catch (Throwable o) 42 | { 43 | MessageBox(null, o.toString().toUTF16z, "Error", MB_OK | MB_ICONEXCLAMATION); 44 | result = 0; 45 | } 46 | 47 | return result; 48 | } 49 | 50 | int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) 51 | { 52 | static CHOOSECOLOR cc; 53 | static COLORREF[16] crCustColors; 54 | 55 | cc.hwndOwner = NULL; 56 | cc.hInstance = NULL; 57 | cc.rgbResult = RGB(0x80, 0x80, 0x80); 58 | cc.lpCustColors = crCustColors.ptr; 59 | cc.Flags = CC_RGBINIT | CC_FULLOPEN; 60 | cc.lCustData = 0; 61 | cc.lpfnHook = NULL; 62 | cc.lpTemplateName = NULL; 63 | 64 | return ChooseColor(&cc); 65 | } 66 | -------------------------------------------------------------------------------- /Samples/Chap11/HexCalc/HexCalc.dlg: -------------------------------------------------------------------------------- 1 | /*--------------------------- 2 | HEXCALC.DLG dialog script 3 | ---------------------------*/ 4 | 5 | HexCalc DIALOG -1, -1, 102, 122 6 | STYLE WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX 7 | CLASS "HexCalc" 8 | CAPTION "Hex Calculator" 9 | { 10 | PUSHBUTTON "D", 68, 8, 24, 14, 14 11 | PUSHBUTTON "A", 65, 8, 40, 14, 14 12 | PUSHBUTTON "7", 55, 8, 56, 14, 14 13 | PUSHBUTTON "4", 52, 8, 72, 14, 14 14 | PUSHBUTTON "1", 49, 8, 88, 14, 14 15 | PUSHBUTTON "0", 48, 8, 104, 14, 14 16 | PUSHBUTTON "0", 27, 26, 4, 50, 14 17 | PUSHBUTTON "E", 69, 26, 24, 14, 14 18 | PUSHBUTTON "B", 66, 26, 40, 14, 14 19 | PUSHBUTTON "8", 56, 26, 56, 14, 14 20 | PUSHBUTTON "5", 53, 26, 72, 14, 14 21 | PUSHBUTTON "2", 50, 26, 88, 14, 14 22 | PUSHBUTTON "Back", 8, 26, 104, 32, 14 23 | PUSHBUTTON "C", 67, 44, 40, 14, 14 24 | PUSHBUTTON "F", 70, 44, 24, 14, 14 25 | PUSHBUTTON "9", 57, 44, 56, 14, 14 26 | PUSHBUTTON "6", 54, 44, 72, 14, 14 27 | PUSHBUTTON "3", 51, 44, 88, 14, 14 28 | PUSHBUTTON "+", 43, 62, 24, 14, 14 29 | PUSHBUTTON "-", 45, 62, 40, 14, 14 30 | PUSHBUTTON "*", 42, 62, 56, 14, 14 31 | PUSHBUTTON "/", 47, 62, 72, 14, 14 32 | PUSHBUTTON "%", 37, 62, 88, 14, 14 33 | PUSHBUTTON "Equals", 61, 62, 104, 32, 14 34 | PUSHBUTTON "&&", 38, 80, 24, 14, 14 35 | PUSHBUTTON "|", 124, 80, 40, 14, 14 36 | PUSHBUTTON "^", 94, 80, 56, 14, 14 37 | PUSHBUTTON "<", 60, 80, 72, 14, 14 38 | PUSHBUTTON ">", 62, 80, 88, 14, 14 39 | } 40 | -------------------------------------------------------------------------------- /Samples/Chap11/HexCalc/HexCalc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap11/HexCalc/HexCalc.ico -------------------------------------------------------------------------------- /Samples/Chap11/HexCalc/HexCalc.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "#include ""hexcalc.dlg""\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Icon 53 | // 54 | 55 | // Icon with lowest ID value placed first to ensure application icon 56 | // remains consistent on all systems. 57 | HEXCALC ICON DISCARDABLE "HexCalc.ico" 58 | #endif // English (U.S.) resources 59 | ///////////////////////////////////////////////////////////////////////////// 60 | 61 | 62 | 63 | #ifndef APSTUDIO_INVOKED 64 | ///////////////////////////////////////////////////////////////////////////// 65 | // 66 | // Generated from the TEXTINCLUDE 3 resource. 67 | // 68 | #include "hexcalc.dlg" 69 | 70 | ///////////////////////////////////////////////////////////////////////////// 71 | #endif // not APSTUDIO_INVOKED 72 | 73 | -------------------------------------------------------------------------------- /Samples/Chap11/HexCalc/HexCalc.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap11/HexCalc/HexCalc.res -------------------------------------------------------------------------------- /Samples/Chap11/HexCalc/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap11\HexCalc\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by HexCalc.rc 6 | // 7 | 8 | // Next default values for new objects 9 | // 10 | //C #ifdef APSTUDIO_INVOKED 11 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 12 | //C #define _APS_NEXT_RESOURCE_VALUE 103 13 | //C #define _APS_NEXT_COMMAND_VALUE 40001 14 | //C #define _APS_NEXT_CONTROL_VALUE 1003 15 | //C #define _APS_NEXT_SYMED_VALUE 101 16 | //C #endif 17 | //C #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap11/HexCalc/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by HexCalc.rc 4 | // 5 | 6 | // Next default values for new objects 7 | // 8 | #ifdef APSTUDIO_INVOKED 9 | #ifndef APSTUDIO_READONLY_SYMBOLS 10 | #define _APS_NEXT_RESOURCE_VALUE 103 11 | #define _APS_NEXT_COMMAND_VALUE 40001 12 | #define _APS_NEXT_CONTROL_VALUE 1003 13 | #define _APS_NEXT_SYMED_VALUE 101 14 | #endif 15 | #endif 16 | -------------------------------------------------------------------------------- /Samples/Chap11/PopPad3/POPPAD.ICO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap11/PopPad3/POPPAD.ICO -------------------------------------------------------------------------------- /Samples/Chap11/PopPad3/POPPAD.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap11/PopPad3/POPPAD.res -------------------------------------------------------------------------------- /Samples/Chap11/PopPad3/PopFont.d: -------------------------------------------------------------------------------- 1 | /+ 2 | + Copyright (c) Charles Petzold, 1998. 3 | + Ported to the D Programming Language by Andrej Mitrovic, 2011. 4 | +/ 5 | 6 | module PopFont; 7 | 8 | import core.memory; 9 | import core.runtime; 10 | import core.thread; 11 | import std.conv; 12 | import std.math; 13 | import std.range; 14 | import std.string; 15 | import std.utf; 16 | 17 | pragma(lib, "gdi32.lib"); 18 | pragma(lib, "comdlg32.lib"); 19 | pragma(lib, "winmm.lib"); 20 | import core.sys.windows.windef; 21 | import core.sys.windows.winuser; 22 | import core.sys.windows.wingdi; 23 | import core.sys.windows.winbase; 24 | import core.sys.windows.commdlg; 25 | import core.sys.windows.mmsystem; 26 | 27 | static LOGFONT logfont; 28 | static HFONT hFont; 29 | 30 | BOOL PopFontChooseFont(HWND hwnd) 31 | { 32 | CHOOSEFONT cf; 33 | 34 | cf.hwndOwner = hwnd; 35 | cf.hDC = NULL; 36 | cf.lpLogFont = &logfont; 37 | cf.iPointSize = 0; 38 | cf.Flags = CF_INITTOLOGFONTSTRUCT | CF_SCREENFONTS | CF_EFFECTS; 39 | cf.rgbColors = 0; 40 | cf.lCustData = 0; 41 | cf.lpfnHook = NULL; 42 | cf.lpTemplateName = NULL; 43 | cf.hInstance = NULL; 44 | cf.lpszStyle = NULL; 45 | cf.nFontType = 0; // Returned from ChooseFont 46 | cf.nSizeMin = 0; 47 | cf.nSizeMax = 0; 48 | 49 | return ChooseFont(&cf); 50 | } 51 | 52 | void PopFontInitialize(HWND hwndEdit) 53 | { 54 | GetObject(GetStockObject(SYSTEM_FONT), LOGFONT.sizeof, cast(PTSTR)&logfont); 55 | 56 | hFont = CreateFontIndirect(&logfont); 57 | SendMessage(hwndEdit, WM_SETFONT, cast(WPARAM)hFont, 0); 58 | } 59 | 60 | void PopFontSetFont(HWND hwndEdit) 61 | { 62 | HFONT hFontNew; 63 | RECT rect; 64 | 65 | hFontNew = CreateFontIndirect(&logfont); 66 | SendMessage(hwndEdit, WM_SETFONT, cast(WPARAM)hFontNew, 0); 67 | DeleteObject(hFont); 68 | hFont = hFontNew; 69 | GetClientRect(hwndEdit, &rect); 70 | InvalidateRect(hwndEdit, &rect, TRUE); 71 | } 72 | 73 | void PopFontDeinitialize() 74 | { 75 | DeleteObject(hFont); 76 | } 77 | -------------------------------------------------------------------------------- /Samples/Chap11/PopPad3/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by poppad.rc 4 | // 5 | #define IDC_FILENAME 1000 6 | #define IDM_FILE_NEW 40001 7 | #define IDM_FILE_OPEN 40002 8 | #define IDM_FILE_SAVE 40003 9 | #define IDM_FILE_SAVE_AS 40004 10 | #define IDM_FILE_PRINT 40005 11 | #define IDM_APP_EXIT 40006 12 | #define IDM_EDIT_UNDO 40007 13 | #define IDM_EDIT_CUT 40008 14 | #define IDM_EDIT_COPY 40009 15 | #define IDM_EDIT_PASTE 40010 16 | #define IDM_EDIT_CLEAR 40011 17 | #define IDM_EDIT_SELECT_ALL 40012 18 | #define IDM_SEARCH_FIND 40013 19 | #define IDM_SEARCH_NEXT 40014 20 | #define IDM_SEARCH_REPLACE 40015 21 | #define IDM_FORMAT_FONT 40016 22 | #define IDM_HELP 40017 23 | #define IDM_APP_ABOUT 40018 24 | 25 | // Next default values for new objects 26 | // 27 | #ifdef APSTUDIO_INVOKED 28 | #ifndef APSTUDIO_READONLY_SYMBOLS 29 | #define _APS_NEXT_RESOURCE_VALUE 110 30 | #define _APS_NEXT_COMMAND_VALUE 40019 31 | #define _APS_NEXT_CONTROL_VALUE 1001 32 | #define _APS_NEXT_SYMED_VALUE 101 33 | #endif 34 | #endif 35 | -------------------------------------------------------------------------------- /Samples/Chap12/ClipText/ClipText.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap12/ClipText/ClipText.res -------------------------------------------------------------------------------- /Samples/Chap12/ClipText/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap12\ClipText\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by ClipText.rc 6 | // 7 | //C #define IDM_EDIT_CUT 40001 8 | //C #define IDM_EDIT_COPY 40002 9 | const IDM_EDIT_CUT = 40001; 10 | //C #define IDM_EDIT_PASTE 40003 11 | const IDM_EDIT_COPY = 40002; 12 | //C #define IDM_EDIT_CLEAR 40004 13 | const IDM_EDIT_PASTE = 40003; 14 | //C #define IDM_EDIT_RESET 40005 15 | const IDM_EDIT_CLEAR = 40004; 16 | 17 | const IDM_EDIT_RESET = 40005; 18 | // Next default values for new objects 19 | // 20 | //C #ifdef APSTUDIO_INVOKED 21 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 22 | //C #define _APS_NEXT_RESOURCE_VALUE 103 23 | //C #define _APS_NEXT_COMMAND_VALUE 40006 24 | //C #define _APS_NEXT_CONTROL_VALUE 1000 25 | //C #define _APS_NEXT_SYMED_VALUE 101 26 | //C #endif 27 | //C #endif 28 | -------------------------------------------------------------------------------- /Samples/Chap12/ClipText/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by ClipText.rc 4 | // 5 | #define IDM_EDIT_CUT 40001 6 | #define IDM_EDIT_COPY 40002 7 | #define IDM_EDIT_PASTE 40003 8 | #define IDM_EDIT_CLEAR 40004 9 | #define IDM_EDIT_RESET 40005 10 | 11 | // Next default values for new objects 12 | // 13 | #ifdef APSTUDIO_INVOKED 14 | #ifndef APSTUDIO_READONLY_SYMBOLS 15 | #define _APS_NEXT_RESOURCE_VALUE 103 16 | #define _APS_NEXT_COMMAND_VALUE 40006 17 | #define _APS_NEXT_CONTROL_VALUE 1000 18 | #define _APS_NEXT_SYMED_VALUE 101 19 | #endif 20 | #endif 21 | -------------------------------------------------------------------------------- /Samples/Chap13/DevCaps2/DevCaps2.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap13/DevCaps2/DevCaps2.pdb -------------------------------------------------------------------------------- /Samples/Chap13/DevCaps2/DevCaps2.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap13/DevCaps2/DevCaps2.res -------------------------------------------------------------------------------- /Samples/Chap13/DevCaps2/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap13\DevCaps2\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by DevCaps2.rc 6 | // 7 | //C #define IDM_SCREEN 40001 8 | //C #define IDM_BASIC 40002 9 | const IDM_SCREEN = 40001; 10 | //C #define IDM_OTHER 40003 11 | const IDM_BASIC = 40002; 12 | //C #define IDM_CURVE 40004 13 | const IDM_OTHER = 40003; 14 | //C #define IDM_LINE 40005 15 | const IDM_CURVE = 40004; 16 | //C #define IDM_POLY 40006 17 | const IDM_LINE = 40005; 18 | //C #define IDM_TEXT 40007 19 | const IDM_POLY = 40006; 20 | 21 | const IDM_TEXT = 40007; 22 | // Next default values for new objects 23 | // 24 | //C #ifdef APSTUDIO_INVOKED 25 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 26 | //C #define _APS_NEXT_RESOURCE_VALUE 102 27 | //C #define _APS_NEXT_COMMAND_VALUE 40008 28 | //C #define _APS_NEXT_CONTROL_VALUE 1000 29 | //C #define _APS_NEXT_SYMED_VALUE 101 30 | //C #endif 31 | //C #endif 32 | -------------------------------------------------------------------------------- /Samples/Chap13/DevCaps2/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by DevCaps2.rc 4 | // 5 | #define IDM_SCREEN 40001 6 | #define IDM_BASIC 40002 7 | #define IDM_OTHER 40003 8 | #define IDM_CURVE 40004 9 | #define IDM_LINE 40005 10 | #define IDM_POLY 40006 11 | #define IDM_TEXT 40007 12 | 13 | // Next default values for new objects 14 | // 15 | #ifdef APSTUDIO_INVOKED 16 | #ifndef APSTUDIO_READONLY_SYMBOLS 17 | #define _APS_NEXT_RESOURCE_VALUE 102 18 | #define _APS_NEXT_COMMAND_VALUE 40008 19 | #define _APS_NEXT_CONTROL_VALUE 1000 20 | #define _APS_NEXT_SYMED_VALUE 101 21 | #endif 22 | #endif 23 | -------------------------------------------------------------------------------- /Samples/Chap13/PopPad/POPPAD.ICO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap13/PopPad/POPPAD.ICO -------------------------------------------------------------------------------- /Samples/Chap13/PopPad/POPPAD.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap13/PopPad/POPPAD.res -------------------------------------------------------------------------------- /Samples/Chap13/PopPad/PopFont.d: -------------------------------------------------------------------------------- 1 | /+ 2 | + Copyright (c) Charles Petzold, 1998. 3 | + Ported to the D Programming Language by Andrej Mitrovic, 2011. 4 | +/ 5 | 6 | module PopFont; 7 | 8 | import core.memory; 9 | import core.runtime; 10 | import core.thread; 11 | import std.conv; 12 | import std.math; 13 | import std.range; 14 | import std.string; 15 | import std.utf; 16 | 17 | pragma(lib, "gdi32.lib"); 18 | pragma(lib, "comdlg32.lib"); 19 | pragma(lib, "winmm.lib"); 20 | import core.sys.windows.windef; 21 | import core.sys.windows.winuser; 22 | import core.sys.windows.wingdi; 23 | import core.sys.windows.winbase; 24 | import core.sys.windows.commdlg; 25 | import core.sys.windows.mmsystem; 26 | 27 | static LOGFONT logfont; 28 | static HFONT hFont; 29 | 30 | BOOL PopFontChooseFont(HWND hwnd) 31 | { 32 | CHOOSEFONT cf; 33 | 34 | cf.hwndOwner = hwnd; 35 | cf.hDC = NULL; 36 | cf.lpLogFont = &logfont; 37 | cf.iPointSize = 0; 38 | cf.Flags = CF_INITTOLOGFONTSTRUCT | CF_SCREENFONTS | CF_EFFECTS; 39 | cf.rgbColors = 0; 40 | cf.lCustData = 0; 41 | cf.lpfnHook = NULL; 42 | cf.lpTemplateName = NULL; 43 | cf.hInstance = NULL; 44 | cf.lpszStyle = NULL; 45 | cf.nFontType = 0; // Returned from ChooseFont 46 | cf.nSizeMin = 0; 47 | cf.nSizeMax = 0; 48 | 49 | return ChooseFont(&cf); 50 | } 51 | 52 | void PopFontInitialize(HWND hwndEdit) 53 | { 54 | GetObject(GetStockObject(SYSTEM_FONT), LOGFONT.sizeof, cast(PTSTR)&logfont); 55 | 56 | hFont = CreateFontIndirect(&logfont); 57 | SendMessage(hwndEdit, WM_SETFONT, cast(WPARAM)hFont, 0); 58 | } 59 | 60 | void PopFontSetFont(HWND hwndEdit) 61 | { 62 | HFONT hFontNew; 63 | RECT rect; 64 | 65 | hFontNew = CreateFontIndirect(&logfont); 66 | SendMessage(hwndEdit, WM_SETFONT, cast(WPARAM)hFontNew, 0); 67 | DeleteObject(hFont); 68 | hFont = hFontNew; 69 | GetClientRect(hwndEdit, &rect); 70 | InvalidateRect(hwndEdit, &rect, TRUE); 71 | } 72 | 73 | void PopFontDeinitialize() 74 | { 75 | DeleteObject(hFont); 76 | } 77 | -------------------------------------------------------------------------------- /Samples/Chap13/PopPad/Uxtheme.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap13/PopPad/Uxtheme.lib -------------------------------------------------------------------------------- /Samples/Chap13/PopPad/gdi32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap13/PopPad/gdi32.lib -------------------------------------------------------------------------------- /Samples/Chap13/PopPad/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by poppad.rc 4 | // 5 | #define IDC_FILENAME 1000 6 | #define IDM_FILE_NEW 40001 7 | #define IDM_FILE_OPEN 40002 8 | #define IDM_FILE_SAVE 40003 9 | #define IDM_FILE_SAVE_AS 40004 10 | #define IDM_FILE_PRINT 40005 11 | #define IDM_APP_EXIT 40006 12 | #define IDM_EDIT_UNDO 40007 13 | #define IDM_EDIT_CUT 40008 14 | #define IDM_EDIT_COPY 40009 15 | #define IDM_EDIT_PASTE 40010 16 | #define IDM_EDIT_CLEAR 40011 17 | #define IDM_EDIT_SELECT_ALL 40012 18 | #define IDM_SEARCH_FIND 40013 19 | #define IDM_SEARCH_NEXT 40014 20 | #define IDM_SEARCH_REPLACE 40015 21 | #define IDM_FORMAT_FONT 40016 22 | #define IDM_HELP 40017 23 | #define IDM_APP_ABOUT 40018 24 | 25 | // Next default values for new objects 26 | // 27 | #ifdef APSTUDIO_INVOKED 28 | #ifndef APSTUDIO_READONLY_SYMBOLS 29 | #define _APS_NEXT_RESOURCE_VALUE 110 30 | #define _APS_NEXT_COMMAND_VALUE 40019 31 | #define _APS_NEXT_CONTROL_VALUE 1001 32 | #define _APS_NEXT_SYMED_VALUE 101 33 | #endif 34 | #endif 35 | -------------------------------------------------------------------------------- /Samples/Chap13/PopPad/uxthemed.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap13/PopPad/uxthemed.lib -------------------------------------------------------------------------------- /Samples/Chap13/PopPad/win32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap13/PopPad/win32.lib -------------------------------------------------------------------------------- /Samples/Chap13/Print3/Print.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap13/Print3/Print.res -------------------------------------------------------------------------------- /Samples/Chap13/Print3/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap13\Print3\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Print.rc 6 | // 7 | //C #define IDC_STATIC -1 8 | 9 | const IDC_STATIC = -1; 10 | // Next default values for new objects 11 | // 12 | //C #ifdef APSTUDIO_INVOKED 13 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 14 | //C #define _APS_NEXT_RESOURCE_VALUE 102 15 | //C #define _APS_NEXT_COMMAND_VALUE 40001 16 | //C #define _APS_NEXT_CONTROL_VALUE 1000 17 | //C #define _APS_NEXT_SYMED_VALUE 101 18 | //C #endif 19 | //C #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap13/Print3/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Print.rc 4 | // 5 | #define IDC_STATIC -1 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1000 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Samples/Chap14/BitMask/BitMask.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Bitmap 53 | // 54 | 55 | BLOCK BITMAP DISCARDABLE "block.bmp" 56 | #endif // English (U.S.) resources 57 | ///////////////////////////////////////////////////////////////////////////// 58 | 59 | 60 | 61 | #ifndef APSTUDIO_INVOKED 62 | ///////////////////////////////////////////////////////////////////////////// 63 | // 64 | // Generated from the TEXTINCLUDE 3 resource. 65 | // 66 | 67 | 68 | ///////////////////////////////////////////////////////////////////////////// 69 | #endif // not APSTUDIO_INVOKED 70 | 71 | -------------------------------------------------------------------------------- /Samples/Chap14/BitMask/BitMask.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/BitMask/BitMask.res -------------------------------------------------------------------------------- /Samples/Chap14/BitMask/block.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/BitMask/block.bmp -------------------------------------------------------------------------------- /Samples/Chap14/BitMask/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap14\BitMask\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by BitMask.rc 6 | // 7 | 8 | // Next default values for new objects 9 | // 10 | //C #ifdef APSTUDIO_INVOKED 11 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 12 | //C #define _APS_NEXT_RESOURCE_VALUE 102 13 | //C #define _APS_NEXT_COMMAND_VALUE 40001 14 | //C #define _APS_NEXT_CONTROL_VALUE 1000 15 | //C #define _APS_NEXT_SYMED_VALUE 101 16 | //C #endif 17 | //C #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap14/BitMask/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by BitMask.rc 4 | // 5 | 6 | // Next default values for new objects 7 | // 8 | #ifdef APSTUDIO_INVOKED 9 | #ifndef APSTUDIO_READONLY_SYMBOLS 10 | #define _APS_NEXT_RESOURCE_VALUE 102 11 | #define _APS_NEXT_COMMAND_VALUE 40001 12 | #define _APS_NEXT_CONTROL_VALUE 1000 13 | #define _APS_NEXT_SYMED_VALUE 101 14 | #endif 15 | #endif 16 | -------------------------------------------------------------------------------- /Samples/Chap14/Blowup/Blowup.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/Blowup/Blowup.res -------------------------------------------------------------------------------- /Samples/Chap14/Blowup/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap14\Blowup\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Blowup.rc 6 | // 7 | //C #define IDM_EDIT_CUT 40001 8 | //C #define IDM_EDIT_COPY 40002 9 | const IDM_EDIT_CUT = 40001; 10 | //C #define IDM_EDIT_PASTE 40003 11 | const IDM_EDIT_COPY = 40002; 12 | //C #define IDM_EDIT_DELETE 40004 13 | const IDM_EDIT_PASTE = 40003; 14 | 15 | const IDM_EDIT_DELETE = 40004; 16 | // Next default values for new objects 17 | // 18 | //C #ifdef APSTUDIO_INVOKED 19 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 20 | //C #define _APS_NEXT_RESOURCE_VALUE 103 21 | //C #define _APS_NEXT_COMMAND_VALUE 40005 22 | //C #define _APS_NEXT_CONTROL_VALUE 1000 23 | //C #define _APS_NEXT_SYMED_VALUE 101 24 | //C #endif 25 | //C #endif 26 | -------------------------------------------------------------------------------- /Samples/Chap14/Blowup/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Blowup.rc 4 | // 5 | #define IDM_EDIT_CUT 40001 6 | #define IDM_EDIT_COPY 40002 7 | #define IDM_EDIT_PASTE 40003 8 | #define IDM_EDIT_DELETE 40004 9 | 10 | // Next default values for new objects 11 | // 12 | #ifdef APSTUDIO_INVOKED 13 | #ifndef APSTUDIO_READONLY_SYMBOLS 14 | #define _APS_NEXT_RESOURCE_VALUE 103 15 | #define _APS_NEXT_COMMAND_VALUE 40005 16 | #define _APS_NEXT_CONTROL_VALUE 1000 17 | #define _APS_NEXT_SYMED_VALUE 101 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap14/Bricks1/Bricks.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/Bricks1/Bricks.bmp -------------------------------------------------------------------------------- /Samples/Chap14/Bricks1/Bricks1.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Bitmap 53 | // 54 | 55 | BRICKS BITMAP DISCARDABLE "Bricks.bmp" 56 | #endif // English (U.S.) resources 57 | ///////////////////////////////////////////////////////////////////////////// 58 | 59 | 60 | 61 | #ifndef APSTUDIO_INVOKED 62 | ///////////////////////////////////////////////////////////////////////////// 63 | // 64 | // Generated from the TEXTINCLUDE 3 resource. 65 | // 66 | 67 | 68 | ///////////////////////////////////////////////////////////////////////////// 69 | #endif // not APSTUDIO_INVOKED 70 | 71 | -------------------------------------------------------------------------------- /Samples/Chap14/Bricks1/Bricks1.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/Bricks1/Bricks1.res -------------------------------------------------------------------------------- /Samples/Chap14/Bricks1/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap14\Bricks1\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Bricks1.rc 6 | // 7 | 8 | // Next default values for new objects 9 | // 10 | //C #ifdef APSTUDIO_INVOKED 11 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 12 | //C #define _APS_NEXT_RESOURCE_VALUE 102 13 | //C #define _APS_NEXT_COMMAND_VALUE 40001 14 | //C #define _APS_NEXT_CONTROL_VALUE 1000 15 | //C #define _APS_NEXT_SYMED_VALUE 101 16 | //C #endif 17 | //C #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap14/Bricks1/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Bricks1.rc 4 | // 5 | 6 | // Next default values for new objects 7 | // 8 | #ifdef APSTUDIO_INVOKED 9 | #ifndef APSTUDIO_READONLY_SYMBOLS 10 | #define _APS_NEXT_RESOURCE_VALUE 102 11 | #define _APS_NEXT_COMMAND_VALUE 40001 12 | #define _APS_NEXT_CONTROL_VALUE 1000 13 | #define _APS_NEXT_SYMED_VALUE 101 14 | #endif 15 | #endif 16 | -------------------------------------------------------------------------------- /Samples/Chap14/Bricks3/BRICKS3.RC: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "afxres.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Bitmap 53 | // 54 | 55 | BRICKS BITMAP DISCARDABLE "Bricks.bmp" 56 | #endif // English (U.S.) resources 57 | ///////////////////////////////////////////////////////////////////////////// 58 | 59 | 60 | 61 | #ifndef APSTUDIO_INVOKED 62 | ///////////////////////////////////////////////////////////////////////////// 63 | // 64 | // Generated from the TEXTINCLUDE 3 resource. 65 | // 66 | 67 | 68 | ///////////////////////////////////////////////////////////////////////////// 69 | #endif // not APSTUDIO_INVOKED 70 | 71 | -------------------------------------------------------------------------------- /Samples/Chap14/Bricks3/BRICKS3.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/Bricks3/BRICKS3.res -------------------------------------------------------------------------------- /Samples/Chap14/Bricks3/Bricks.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/Bricks3/Bricks.bmp -------------------------------------------------------------------------------- /Samples/Chap14/Bricks3/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap14\Bricks3\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Bricks3.rc 6 | // 7 | 8 | // Next default values for new objects 9 | // 10 | //C #ifdef APSTUDIO_INVOKED 11 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 12 | //C #define _APS_NEXT_RESOURCE_VALUE 102 13 | //C #define _APS_NEXT_COMMAND_VALUE 40001 14 | //C #define _APS_NEXT_CONTROL_VALUE 1000 15 | //C #define _APS_NEXT_SYMED_VALUE 101 16 | //C #endif 17 | //C #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap14/Bricks3/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Bricks3.rc 4 | // 5 | 6 | // Next default values for new objects 7 | // 8 | #ifdef APSTUDIO_INVOKED 9 | #ifndef APSTUDIO_READONLY_SYMBOLS 10 | #define _APS_NEXT_RESOURCE_VALUE 102 11 | #define _APS_NEXT_COMMAND_VALUE 40001 12 | #define _APS_NEXT_CONTROL_VALUE 1000 13 | #define _APS_NEXT_SYMED_VALUE 101 14 | #endif 15 | #endif 16 | -------------------------------------------------------------------------------- /Samples/Chap14/GrafMenu/Bighelp.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/GrafMenu/Bighelp.bmp -------------------------------------------------------------------------------- /Samples/Chap14/GrafMenu/Editlabl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/GrafMenu/Editlabl.bmp -------------------------------------------------------------------------------- /Samples/Chap14/GrafMenu/Filelabl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/GrafMenu/Filelabl.bmp -------------------------------------------------------------------------------- /Samples/Chap14/GrafMenu/Fontlabl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/GrafMenu/Fontlabl.bmp -------------------------------------------------------------------------------- /Samples/Chap14/GrafMenu/GrafMenu.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/GrafMenu/GrafMenu.res -------------------------------------------------------------------------------- /Samples/Chap14/GrafMenu/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap14\GrafMenu\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by GrafMenu.rc 6 | // 7 | //C #define IDM_FONT_COUR 101 8 | //C #define IDM_FONT_ARIAL 102 9 | const IDM_FONT_COUR = 101; 10 | //C #define IDM_FONT_TIMES 103 11 | const IDM_FONT_ARIAL = 102; 12 | //C #define IDM_HELP 104 13 | const IDM_FONT_TIMES = 103; 14 | //C #define IDM_EDIT_UNDO 40005 15 | const IDM_HELP = 104; 16 | //C #define IDM_EDIT_CUT 40006 17 | const IDM_EDIT_UNDO = 40005; 18 | //C #define IDM_EDIT_COPY 40007 19 | const IDM_EDIT_CUT = 40006; 20 | //C #define IDM_EDIT_PASTE 40008 21 | const IDM_EDIT_COPY = 40007; 22 | //C #define IDM_EDIT_CLEAR 40009 23 | const IDM_EDIT_PASTE = 40008; 24 | //C #define IDM_FILE_NEW 40010 25 | const IDM_EDIT_CLEAR = 40009; 26 | //C #define IDM_FILE_OPEN 40011 27 | const IDM_FILE_NEW = 40010; 28 | //C #define IDM_FILE_SAVE 40012 29 | const IDM_FILE_OPEN = 40011; 30 | //C #define IDM_FILE_SAVE_AS 40013 31 | const IDM_FILE_SAVE = 40012; 32 | 33 | const IDM_FILE_SAVE_AS = 40013; 34 | // Next default values for new objects 35 | // 36 | //C #ifdef APSTUDIO_INVOKED 37 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 38 | //C #define _APS_NEXT_RESOURCE_VALUE 108 39 | //C #define _APS_NEXT_COMMAND_VALUE 40014 40 | //C #define _APS_NEXT_CONTROL_VALUE 1000 41 | //C #define _APS_NEXT_SYMED_VALUE 105 42 | //C #endif 43 | //C #endif 44 | -------------------------------------------------------------------------------- /Samples/Chap14/GrafMenu/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by GrafMenu.rc 4 | // 5 | #define IDM_FONT_COUR 101 6 | #define IDM_FONT_ARIAL 102 7 | #define IDM_FONT_TIMES 103 8 | #define IDM_HELP 104 9 | #define IDM_EDIT_UNDO 40005 10 | #define IDM_EDIT_CUT 40006 11 | #define IDM_EDIT_COPY 40007 12 | #define IDM_EDIT_PASTE 40008 13 | #define IDM_EDIT_CLEAR 40009 14 | #define IDM_FILE_NEW 40010 15 | #define IDM_FILE_OPEN 40011 16 | #define IDM_FILE_SAVE 40012 17 | #define IDM_FILE_SAVE_AS 40013 18 | 19 | // Next default values for new objects 20 | // 21 | #ifdef APSTUDIO_INVOKED 22 | #ifndef APSTUDIO_READONLY_SYMBOLS 23 | #define _APS_NEXT_RESOURCE_VALUE 108 24 | #define _APS_NEXT_COMMAND_VALUE 40014 25 | #define _APS_NEXT_CONTROL_VALUE 1000 26 | #define _APS_NEXT_SYMED_VALUE 105 27 | #endif 28 | #endif 29 | -------------------------------------------------------------------------------- /Samples/Chap14/HelloBit/HelloBit.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | HELLOBIT MENU DISCARDABLE 56 | BEGIN 57 | POPUP "&Size" 58 | BEGIN 59 | MENUITEM "&Big", IDM_BIG, CHECKED 60 | MENUITEM "&Small", IDM_SMALL 61 | END 62 | END 63 | 64 | #endif // English (U.S.) resources 65 | ///////////////////////////////////////////////////////////////////////////// 66 | 67 | 68 | 69 | #ifndef APSTUDIO_INVOKED 70 | ///////////////////////////////////////////////////////////////////////////// 71 | // 72 | // Generated from the TEXTINCLUDE 3 resource. 73 | // 74 | 75 | 76 | ///////////////////////////////////////////////////////////////////////////// 77 | #endif // not APSTUDIO_INVOKED 78 | 79 | -------------------------------------------------------------------------------- /Samples/Chap14/HelloBit/HelloBit.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap14/HelloBit/HelloBit.res -------------------------------------------------------------------------------- /Samples/Chap14/HelloBit/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap14\HelloBit\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by HelloBit.rc 6 | // 7 | //C #define IDM_BIG 40001 8 | //C #define IDM_SMALL 40002 9 | const IDM_BIG = 40001; 10 | 11 | const IDM_SMALL = 40002; 12 | // Next default values for new objects 13 | // 14 | //C #ifdef APSTUDIO_INVOKED 15 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 16 | //C #define _APS_NEXT_RESOURCE_VALUE 102 17 | //C #define _APS_NEXT_COMMAND_VALUE 40003 18 | //C #define _APS_NEXT_CONTROL_VALUE 1000 19 | //C #define _APS_NEXT_SYMED_VALUE 101 20 | //C #endif 21 | //C #endif 22 | -------------------------------------------------------------------------------- /Samples/Chap14/HelloBit/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by HelloBit.rc 4 | // 5 | #define IDM_BIG 40001 6 | #define IDM_SMALL 40002 7 | 8 | // Next default values for new objects 9 | // 10 | #ifdef APSTUDIO_INVOKED 11 | #ifndef APSTUDIO_READONLY_SYMBOLS 12 | #define _APS_NEXT_RESOURCE_VALUE 102 13 | #define _APS_NEXT_COMMAND_VALUE 40003 14 | #define _APS_NEXT_CONTROL_VALUE 1000 15 | #define _APS_NEXT_SYMED_VALUE 101 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap15/Apollo11/Apollo11.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap15/Apollo11/Apollo11.bmp -------------------------------------------------------------------------------- /Samples/Chap15/Apollo11/ApolloTD.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap15/Apollo11/ApolloTD.bmp -------------------------------------------------------------------------------- /Samples/Chap15/DibConv/DibConv.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | DIBCONV MENU DISCARDABLE 56 | BEGIN 57 | POPUP "&File" 58 | BEGIN 59 | MENUITEM "&Open", IDM_FILE_OPEN 60 | END 61 | END 62 | 63 | #endif // English (U.S.) resources 64 | ///////////////////////////////////////////////////////////////////////////// 65 | 66 | 67 | 68 | #ifndef APSTUDIO_INVOKED 69 | ///////////////////////////////////////////////////////////////////////////// 70 | // 71 | // Generated from the TEXTINCLUDE 3 resource. 72 | // 73 | 74 | 75 | ///////////////////////////////////////////////////////////////////////////// 76 | #endif // not APSTUDIO_INVOKED 77 | 78 | -------------------------------------------------------------------------------- /Samples/Chap15/DibConv/DibConv.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap15/DibConv/DibConv.res -------------------------------------------------------------------------------- /Samples/Chap15/DibConv/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap15\DibConv\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by DibConv.rc 6 | // 7 | //C #define IDM_FILE_OPEN 40001 8 | 9 | const IDM_FILE_OPEN = 40001; 10 | // Next default values for new objects 11 | // 12 | //C #ifdef APSTUDIO_INVOKED 13 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 14 | //C #define _APS_NEXT_RESOURCE_VALUE 102 15 | //C #define _APS_NEXT_COMMAND_VALUE 40002 16 | //C #define _APS_NEXT_CONTROL_VALUE 1000 17 | //C #define _APS_NEXT_SYMED_VALUE 101 18 | //C #endif 19 | //C #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap15/DibConv/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by DibConv.rc 4 | // 5 | #define IDM_FILE_OPEN 40001 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40002 13 | #define _APS_NEXT_CONTROL_VALUE 1000 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Samples/Chap15/DibHeads/DibHeads.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap15/DibHeads/DibHeads.res -------------------------------------------------------------------------------- /Samples/Chap15/DibHeads/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap15\DibHeads\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by DibHeads.rc 6 | // 7 | //C #define IDM_FILE_OPEN 40001 8 | 9 | const IDM_FILE_OPEN = 40001; 10 | // Next default values for new objects 11 | // 12 | //C #ifdef APSTUDIO_INVOKED 13 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 14 | //C #define _APS_NEXT_RESOURCE_VALUE 103 15 | //C #define _APS_NEXT_COMMAND_VALUE 40002 16 | //C #define _APS_NEXT_CONTROL_VALUE 1000 17 | //C #define _APS_NEXT_SYMED_VALUE 101 18 | //C #endif 19 | //C #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap15/DibHeads/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by DibHeads.rc 4 | // 5 | #define IDM_FILE_OPEN 40001 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 103 12 | #define _APS_NEXT_COMMAND_VALUE 40002 13 | #define _APS_NEXT_CONTROL_VALUE 1000 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Samples/Chap15/DibSect/DibSect.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | DIBSECT MENU DISCARDABLE 56 | BEGIN 57 | POPUP "&File" 58 | BEGIN 59 | MENUITEM "&Open", IDM_FILE_OPEN 60 | END 61 | END 62 | 63 | #endif // English (U.S.) resources 64 | ///////////////////////////////////////////////////////////////////////////// 65 | 66 | 67 | 68 | #ifndef APSTUDIO_INVOKED 69 | ///////////////////////////////////////////////////////////////////////////// 70 | // 71 | // Generated from the TEXTINCLUDE 3 resource. 72 | // 73 | 74 | 75 | ///////////////////////////////////////////////////////////////////////////// 76 | #endif // not APSTUDIO_INVOKED 77 | 78 | -------------------------------------------------------------------------------- /Samples/Chap15/DibSect/DibSect.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap15/DibSect/DibSect.res -------------------------------------------------------------------------------- /Samples/Chap15/DibSect/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap15\DibHeads\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by DibHeads.rc 6 | // 7 | //C #define IDM_FILE_OPEN 40001 8 | 9 | const IDM_FILE_OPEN = 40001; 10 | // Next default values for new objects 11 | // 12 | //C #ifdef APSTUDIO_INVOKED 13 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 14 | //C #define _APS_NEXT_RESOURCE_VALUE 103 15 | //C #define _APS_NEXT_COMMAND_VALUE 40002 16 | //C #define _APS_NEXT_CONTROL_VALUE 1000 17 | //C #define _APS_NEXT_SYMED_VALUE 101 18 | //C #endif 19 | //C #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap15/DibSect/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by DibSect.rc 4 | // 5 | #define IDM_FILE_OPEN 40001 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40002 13 | #define _APS_NEXT_CONTROL_VALUE 1000 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Samples/Chap15/SeqDisp/SeqDisp.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap15/SeqDisp/SeqDisp.res -------------------------------------------------------------------------------- /Samples/Chap15/SeqDisp/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap15\DibHeads\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by DibHeads.rc 6 | // 7 | //C #define IDM_FILE_OPEN 40001 8 | 9 | const IDM_FILE_OPEN = 40001; 10 | // Next default values for new objects 11 | // 12 | //C #ifdef APSTUDIO_INVOKED 13 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 14 | //C #define _APS_NEXT_RESOURCE_VALUE 103 15 | //C #define _APS_NEXT_COMMAND_VALUE 40002 16 | //C #define _APS_NEXT_CONTROL_VALUE 1000 17 | //C #define _APS_NEXT_SYMED_VALUE 101 18 | //C #endif 19 | //C #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap15/SeqDisp/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by SeqDisp.rc 4 | // 5 | #define IDM_FILE_OPEN 40001 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 101 12 | #define _APS_NEXT_COMMAND_VALUE 40002 13 | #define _APS_NEXT_CONTROL_VALUE 1000 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Samples/Chap15/ShowDib1/ShowDib1.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | SHOWDIB1 MENU DISCARDABLE 56 | BEGIN 57 | POPUP "&File" 58 | BEGIN 59 | MENUITEM "&Open...", IDM_FILE_OPEN 60 | MENUITEM "&Save...", IDM_FILE_SAVE 61 | END 62 | END 63 | 64 | #endif // English (U.S.) resources 65 | ///////////////////////////////////////////////////////////////////////////// 66 | 67 | 68 | 69 | #ifndef APSTUDIO_INVOKED 70 | ///////////////////////////////////////////////////////////////////////////// 71 | // 72 | // Generated from the TEXTINCLUDE 3 resource. 73 | // 74 | 75 | 76 | ///////////////////////////////////////////////////////////////////////////// 77 | #endif // not APSTUDIO_INVOKED 78 | 79 | -------------------------------------------------------------------------------- /Samples/Chap15/ShowDib1/ShowDib1.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap15/ShowDib1/ShowDib1.res -------------------------------------------------------------------------------- /Samples/Chap15/ShowDib1/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap15\ShowDib1\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by ShowDib1.rc 6 | // 7 | //C #define IDM_FILE_OPEN 40001 8 | //C #define IDM_FILE_SAVE 40002 9 | const IDM_FILE_OPEN = 40001; 10 | 11 | const IDM_FILE_SAVE = 40002; 12 | // Next default values for new objects 13 | // 14 | //C #ifdef APSTUDIO_INVOKED 15 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 16 | //C #define _APS_NEXT_RESOURCE_VALUE 103 17 | //C #define _APS_NEXT_COMMAND_VALUE 40003 18 | //C #define _APS_NEXT_CONTROL_VALUE 1000 19 | //C #define _APS_NEXT_SYMED_VALUE 101 20 | //C #endif 21 | //C #endif 22 | -------------------------------------------------------------------------------- /Samples/Chap15/ShowDib1/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by ShowDib1.rc 4 | // 5 | #define IDM_FILE_OPEN 40001 6 | #define IDM_FILE_SAVE 40002 7 | 8 | // Next default values for new objects 9 | // 10 | #ifdef APSTUDIO_INVOKED 11 | #ifndef APSTUDIO_READONLY_SYMBOLS 12 | #define _APS_NEXT_RESOURCE_VALUE 103 13 | #define _APS_NEXT_COMMAND_VALUE 40003 14 | #define _APS_NEXT_CONTROL_VALUE 1000 15 | #define _APS_NEXT_SYMED_VALUE 101 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap15/ShowDib2/ShowDib2.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap15/ShowDib2/ShowDib2.res -------------------------------------------------------------------------------- /Samples/Chap15/ShowDib2/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap15\ShowDib2\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by ShowDib2.rc 6 | // 7 | //C #define IDM_FILE_OPEN 40001 8 | //C #define IDM_SHOW_NORMAL 40002 9 | const IDM_FILE_OPEN = 40001; 10 | //C #define IDM_SHOW_CENTER 40003 11 | const IDM_SHOW_NORMAL = 40002; 12 | //C #define IDM_SHOW_STRETCH 40004 13 | const IDM_SHOW_CENTER = 40003; 14 | //C #define IDM_SHOW_ISOSTRETCH 40005 15 | const IDM_SHOW_STRETCH = 40004; 16 | //C #define IDM_FILE_PRINT 40006 17 | const IDM_SHOW_ISOSTRETCH = 40005; 18 | //C #define IDM_EDIT_COPY 40007 19 | const IDM_FILE_PRINT = 40006; 20 | //C #define IDM_EDIT_CUT 40008 21 | const IDM_EDIT_COPY = 40007; 22 | //C #define IDM_EDIT_DELETE 40009 23 | const IDM_EDIT_CUT = 40008; 24 | //C #define IDM_FILE_SAVE 40010 25 | const IDM_EDIT_DELETE = 40009; 26 | 27 | const IDM_FILE_SAVE = 40010; 28 | // Next default values for new objects 29 | // 30 | //C #ifdef APSTUDIO_INVOKED 31 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 32 | //C #define _APS_NEXT_RESOURCE_VALUE 103 33 | //C #define _APS_NEXT_COMMAND_VALUE 40011 34 | //C #define _APS_NEXT_CONTROL_VALUE 1000 35 | //C #define _APS_NEXT_SYMED_VALUE 101 36 | //C #endif 37 | //C #endif 38 | -------------------------------------------------------------------------------- /Samples/Chap15/ShowDib2/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by ShowDib2.rc 4 | // 5 | #define IDM_FILE_OPEN 40001 6 | #define IDM_SHOW_NORMAL 40002 7 | #define IDM_SHOW_CENTER 40003 8 | #define IDM_SHOW_STRETCH 40004 9 | #define IDM_SHOW_ISOSTRETCH 40005 10 | #define IDM_FILE_PRINT 40006 11 | #define IDM_EDIT_COPY 40007 12 | #define IDM_EDIT_CUT 40008 13 | #define IDM_EDIT_DELETE 40009 14 | #define IDM_FILE_SAVE 40010 15 | 16 | // Next default values for new objects 17 | // 18 | #ifdef APSTUDIO_INVOKED 19 | #ifndef APSTUDIO_READONLY_SYMBOLS 20 | #define _APS_NEXT_RESOURCE_VALUE 103 21 | #define _APS_NEXT_COMMAND_VALUE 40011 22 | #define _APS_NEXT_CONTROL_VALUE 1000 23 | #define _APS_NEXT_SYMED_VALUE 101 24 | #endif 25 | #endif 26 | -------------------------------------------------------------------------------- /Samples/Chap16/note.txt: -------------------------------------------------------------------------------- 1 | This chapter was useful in days when 8-bit displays still existed. 2 | It's unecessary now, so I haven't ported any examples. 3 | -------------------------------------------------------------------------------- /Samples/Chap17/ChosFont/ChosFont.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | CHOSFONT MENU DISCARDABLE 56 | BEGIN 57 | MENUITEM "&Font!", IDM_FONT 58 | END 59 | 60 | #endif // English (U.S.) resources 61 | ///////////////////////////////////////////////////////////////////////////// 62 | 63 | 64 | 65 | #ifndef APSTUDIO_INVOKED 66 | ///////////////////////////////////////////////////////////////////////////// 67 | // 68 | // Generated from the TEXTINCLUDE 3 resource. 69 | // 70 | 71 | 72 | ///////////////////////////////////////////////////////////////////////////// 73 | #endif // not APSTUDIO_INVOKED 74 | 75 | -------------------------------------------------------------------------------- /Samples/Chap17/ChosFont/ChosFont.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap17/ChosFont/ChosFont.res -------------------------------------------------------------------------------- /Samples/Chap17/ChosFont/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap17\ChosFont\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by ChosFont.rc 6 | // 7 | //C #define IDM_FONT 40001 8 | 9 | const IDM_FONT = 40001; 10 | // Next default values for new objects 11 | // 12 | //C #ifdef APSTUDIO_INVOKED 13 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 14 | //C #define _APS_NEXT_RESOURCE_VALUE 102 15 | //C #define _APS_NEXT_COMMAND_VALUE 40002 16 | //C #define _APS_NEXT_CONTROL_VALUE 1000 17 | //C #define _APS_NEXT_SYMED_VALUE 101 18 | //C #endif 19 | //C #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap17/ChosFont/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by ChosFont.rc 4 | // 5 | #define IDM_FONT 40001 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40002 13 | #define _APS_NEXT_CONTROL_VALUE 1000 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Samples/Chap17/EZTest/FontDemo.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | FONTDEMO MENU DISCARDABLE 56 | BEGIN 57 | POPUP "&File" 58 | BEGIN 59 | MENUITEM "&Print...", IDM_PRINT 60 | END 61 | POPUP "&Help" 62 | BEGIN 63 | MENUITEM "&About...", IDM_ABOUT 64 | END 65 | END 66 | 67 | #endif // English (U.S.) resources 68 | ///////////////////////////////////////////////////////////////////////////// 69 | 70 | 71 | 72 | #ifndef APSTUDIO_INVOKED 73 | ///////////////////////////////////////////////////////////////////////////// 74 | // 75 | // Generated from the TEXTINCLUDE 3 resource. 76 | // 77 | 78 | 79 | ///////////////////////////////////////////////////////////////////////////// 80 | #endif // not APSTUDIO_INVOKED 81 | 82 | -------------------------------------------------------------------------------- /Samples/Chap17/EZTest/FontDemo.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap17/EZTest/FontDemo.res -------------------------------------------------------------------------------- /Samples/Chap17/EZTest/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap17\EZTest\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by FontDemo.rc 6 | // 7 | //C #define IDM_PRINT 40001 8 | //C #define IDM_ABOUT 40002 9 | const IDM_PRINT = 40001; 10 | 11 | const IDM_ABOUT = 40002; 12 | // Next default values for new objects 13 | // 14 | //C #ifdef APSTUDIO_INVOKED 15 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 16 | //C #define _APS_NEXT_RESOURCE_VALUE 102 17 | //C #define _APS_NEXT_COMMAND_VALUE 40003 18 | //C #define _APS_NEXT_CONTROL_VALUE 1000 19 | //C #define _APS_NEXT_SYMED_VALUE 101 20 | //C #endif 21 | //C #endif 22 | -------------------------------------------------------------------------------- /Samples/Chap17/EZTest/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by FontDemo.rc 4 | // 5 | #define IDM_PRINT 40001 6 | #define IDM_ABOUT 40002 7 | 8 | // Next default values for new objects 9 | // 10 | #ifdef APSTUDIO_INVOKED 11 | #ifndef APSTUDIO_READONLY_SYMBOLS 12 | #define _APS_NEXT_RESOURCE_VALUE 102 13 | #define _APS_NEXT_COMMAND_VALUE 40003 14 | #define _APS_NEXT_CONTROL_VALUE 1000 15 | #define _APS_NEXT_SYMED_VALUE 101 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap17/FontClip/FontClip.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | FONTCLIP MENU DISCARDABLE 56 | BEGIN 57 | POPUP "&File" 58 | BEGIN 59 | MENUITEM "&Print...", IDM_PRINT 60 | END 61 | POPUP "&Help" 62 | BEGIN 63 | MENUITEM "&About...", IDM_ABOUT 64 | END 65 | END 66 | 67 | #endif // English (U.S.) resources 68 | ///////////////////////////////////////////////////////////////////////////// 69 | 70 | 71 | 72 | #ifndef APSTUDIO_INVOKED 73 | ///////////////////////////////////////////////////////////////////////////// 74 | // 75 | // Generated from the TEXTINCLUDE 3 resource. 76 | // 77 | 78 | 79 | ///////////////////////////////////////////////////////////////////////////// 80 | #endif // not APSTUDIO_INVOKED 81 | 82 | -------------------------------------------------------------------------------- /Samples/Chap17/FontClip/FontClip.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap17/FontClip/FontClip.res -------------------------------------------------------------------------------- /Samples/Chap17/FontClip/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap17\FontClip\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by FontDemo.rc 6 | // 7 | //C #define IDM_PRINT 40001 8 | //C #define IDM_ABOUT 40002 9 | const IDM_PRINT = 40001; 10 | 11 | const IDM_ABOUT = 40002; 12 | // Next default values for new objects 13 | // 14 | //C #ifdef APSTUDIO_INVOKED 15 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 16 | //C #define _APS_NEXT_RESOURCE_VALUE 102 17 | //C #define _APS_NEXT_COMMAND_VALUE 40003 18 | //C #define _APS_NEXT_CONTROL_VALUE 1000 19 | //C #define _APS_NEXT_SYMED_VALUE 101 20 | //C #endif 21 | //C #endif 22 | -------------------------------------------------------------------------------- /Samples/Chap17/FontClip/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by FontDemo.rc 4 | // 5 | #define IDM_PRINT 40001 6 | #define IDM_ABOUT 40002 7 | 8 | // Next default values for new objects 9 | // 10 | #ifdef APSTUDIO_INVOKED 11 | #ifndef APSTUDIO_READONLY_SYMBOLS 12 | #define _APS_NEXT_RESOURCE_VALUE 102 13 | #define _APS_NEXT_COMMAND_VALUE 40003 14 | #define _APS_NEXT_CONTROL_VALUE 1000 15 | #define _APS_NEXT_SYMED_VALUE 101 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap17/FontFill/FontFill.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | FONTFILL MENU DISCARDABLE 56 | BEGIN 57 | POPUP "&File" 58 | BEGIN 59 | MENUITEM "&Print...", IDM_PRINT 60 | END 61 | POPUP "&Help" 62 | BEGIN 63 | MENUITEM "&About...", IDM_ABOUT 64 | END 65 | END 66 | 67 | #endif // English (U.S.) resources 68 | ///////////////////////////////////////////////////////////////////////////// 69 | 70 | 71 | 72 | #ifndef APSTUDIO_INVOKED 73 | ///////////////////////////////////////////////////////////////////////////// 74 | // 75 | // Generated from the TEXTINCLUDE 3 resource. 76 | // 77 | 78 | 79 | ///////////////////////////////////////////////////////////////////////////// 80 | #endif // not APSTUDIO_INVOKED 81 | 82 | -------------------------------------------------------------------------------- /Samples/Chap17/FontFill/FontFill.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap17/FontFill/FontFill.res -------------------------------------------------------------------------------- /Samples/Chap17/FontFill/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap17\FontFill\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by FontDemo.rc 6 | // 7 | //C #define IDM_PRINT 40001 8 | //C #define IDM_ABOUT 40002 9 | const IDM_PRINT = 40001; 10 | 11 | const IDM_ABOUT = 40002; 12 | // Next default values for new objects 13 | // 14 | //C #ifdef APSTUDIO_INVOKED 15 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 16 | //C #define _APS_NEXT_RESOURCE_VALUE 102 17 | //C #define _APS_NEXT_COMMAND_VALUE 40003 18 | //C #define _APS_NEXT_CONTROL_VALUE 1000 19 | //C #define _APS_NEXT_SYMED_VALUE 101 20 | //C #endif 21 | //C #endif 22 | -------------------------------------------------------------------------------- /Samples/Chap17/FontFill/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by FontDemo.rc 4 | // 5 | #define IDM_PRINT 40001 6 | #define IDM_ABOUT 40002 7 | 8 | // Next default values for new objects 9 | // 10 | #ifdef APSTUDIO_INVOKED 11 | #ifndef APSTUDIO_READONLY_SYMBOLS 12 | #define _APS_NEXT_RESOURCE_VALUE 102 13 | #define _APS_NEXT_COMMAND_VALUE 40003 14 | #define _APS_NEXT_CONTROL_VALUE 1000 15 | #define _APS_NEXT_SYMED_VALUE 101 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap17/FontOut1/FontOut.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | FONTOUT1 MENU DISCARDABLE 56 | BEGIN 57 | POPUP "&File" 58 | BEGIN 59 | MENUITEM "&Print...", IDM_PRINT 60 | END 61 | POPUP "&Help" 62 | BEGIN 63 | MENUITEM "&About...", IDM_ABOUT 64 | END 65 | END 66 | 67 | #endif // English (U.S.) resources 68 | ///////////////////////////////////////////////////////////////////////////// 69 | 70 | 71 | 72 | #ifndef APSTUDIO_INVOKED 73 | ///////////////////////////////////////////////////////////////////////////// 74 | // 75 | // Generated from the TEXTINCLUDE 3 resource. 76 | // 77 | 78 | 79 | ///////////////////////////////////////////////////////////////////////////// 80 | #endif // not APSTUDIO_INVOKED 81 | 82 | -------------------------------------------------------------------------------- /Samples/Chap17/FontOut1/FontOut.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap17/FontOut1/FontOut.res -------------------------------------------------------------------------------- /Samples/Chap17/FontOut1/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap17\FontOut1\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by FontDemo.rc 6 | // 7 | //C #define IDM_PRINT 40001 8 | //C #define IDM_ABOUT 40002 9 | const IDM_PRINT = 40001; 10 | 11 | const IDM_ABOUT = 40002; 12 | // Next default values for new objects 13 | // 14 | //C #ifdef APSTUDIO_INVOKED 15 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 16 | //C #define _APS_NEXT_RESOURCE_VALUE 102 17 | //C #define _APS_NEXT_COMMAND_VALUE 40003 18 | //C #define _APS_NEXT_CONTROL_VALUE 1000 19 | //C #define _APS_NEXT_SYMED_VALUE 101 20 | //C #endif 21 | //C #endif 22 | -------------------------------------------------------------------------------- /Samples/Chap17/FontOut1/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by FontDemo.rc 4 | // 5 | #define IDM_PRINT 40001 6 | #define IDM_ABOUT 40002 7 | 8 | // Next default values for new objects 9 | // 10 | #ifdef APSTUDIO_INVOKED 11 | #ifndef APSTUDIO_READONLY_SYMBOLS 12 | #define _APS_NEXT_RESOURCE_VALUE 102 13 | #define _APS_NEXT_COMMAND_VALUE 40003 14 | #define _APS_NEXT_CONTROL_VALUE 1000 15 | #define _APS_NEXT_SYMED_VALUE 101 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap17/FontOut2/FontOut.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | FONTOUT2 MENU DISCARDABLE 56 | BEGIN 57 | POPUP "&File" 58 | BEGIN 59 | MENUITEM "&Print...", IDM_PRINT 60 | END 61 | POPUP "&Help" 62 | BEGIN 63 | MENUITEM "&About...", IDM_ABOUT 64 | END 65 | END 66 | 67 | #endif // English (U.S.) resources 68 | ///////////////////////////////////////////////////////////////////////////// 69 | 70 | 71 | 72 | #ifndef APSTUDIO_INVOKED 73 | ///////////////////////////////////////////////////////////////////////////// 74 | // 75 | // Generated from the TEXTINCLUDE 3 resource. 76 | // 77 | 78 | 79 | ///////////////////////////////////////////////////////////////////////////// 80 | #endif // not APSTUDIO_INVOKED 81 | 82 | -------------------------------------------------------------------------------- /Samples/Chap17/FontOut2/FontOut.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap17/FontOut2/FontOut.res -------------------------------------------------------------------------------- /Samples/Chap17/FontOut2/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap17\FontOut2\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by FontDemo.rc 6 | // 7 | //C #define IDM_PRINT 40001 8 | //C #define IDM_ABOUT 40002 9 | const IDM_PRINT = 40001; 10 | 11 | const IDM_ABOUT = 40002; 12 | // Next default values for new objects 13 | // 14 | //C #ifdef APSTUDIO_INVOKED 15 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 16 | //C #define _APS_NEXT_RESOURCE_VALUE 102 17 | //C #define _APS_NEXT_COMMAND_VALUE 40003 18 | //C #define _APS_NEXT_CONTROL_VALUE 1000 19 | //C #define _APS_NEXT_SYMED_VALUE 101 20 | //C #endif 21 | //C #endif 22 | -------------------------------------------------------------------------------- /Samples/Chap17/FontOut2/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by FontDemo.rc 4 | // 5 | #define IDM_PRINT 40001 6 | #define IDM_ABOUT 40002 7 | 8 | // Next default values for new objects 9 | // 10 | #ifdef APSTUDIO_INVOKED 11 | #ifndef APSTUDIO_READONLY_SYMBOLS 12 | #define _APS_NEXT_RESOURCE_VALUE 102 13 | #define _APS_NEXT_COMMAND_VALUE 40003 14 | #define _APS_NEXT_CONTROL_VALUE 1000 15 | #define _APS_NEXT_SYMED_VALUE 101 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap17/FontRot/FontRot.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | FONTROT MENU DISCARDABLE 56 | BEGIN 57 | POPUP "&File" 58 | BEGIN 59 | MENUITEM "&Print...", IDM_PRINT 60 | END 61 | POPUP "&Help" 62 | BEGIN 63 | MENUITEM "&About...", IDM_ABOUT 64 | END 65 | END 66 | 67 | #endif // English (U.S.) resources 68 | ///////////////////////////////////////////////////////////////////////////// 69 | 70 | 71 | 72 | #ifndef APSTUDIO_INVOKED 73 | ///////////////////////////////////////////////////////////////////////////// 74 | // 75 | // Generated from the TEXTINCLUDE 3 resource. 76 | // 77 | 78 | 79 | ///////////////////////////////////////////////////////////////////////////// 80 | #endif // not APSTUDIO_INVOKED 81 | 82 | -------------------------------------------------------------------------------- /Samples/Chap17/FontRot/FontRot.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap17/FontRot/FontRot.res -------------------------------------------------------------------------------- /Samples/Chap17/FontRot/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap17\FontRot\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by FontDemo.rc 6 | // 7 | //C #define IDM_PRINT 40001 8 | //C #define IDM_ABOUT 40002 9 | const IDM_PRINT = 40001; 10 | 11 | const IDM_ABOUT = 40002; 12 | // Next default values for new objects 13 | // 14 | //C #ifdef APSTUDIO_INVOKED 15 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 16 | //C #define _APS_NEXT_RESOURCE_VALUE 102 17 | //C #define _APS_NEXT_COMMAND_VALUE 40003 18 | //C #define _APS_NEXT_CONTROL_VALUE 1000 19 | //C #define _APS_NEXT_SYMED_VALUE 101 20 | //C #endif 21 | //C #endif 22 | -------------------------------------------------------------------------------- /Samples/Chap17/FontRot/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by FontDemo.rc 4 | // 5 | #define IDM_PRINT 40001 6 | #define IDM_ABOUT 40002 7 | 8 | // Next default values for new objects 9 | // 10 | #ifdef APSTUDIO_INVOKED 11 | #ifndef APSTUDIO_READONLY_SYMBOLS 12 | #define _APS_NEXT_RESOURCE_VALUE 102 13 | #define _APS_NEXT_COMMAND_VALUE 40003 14 | #define _APS_NEXT_CONTROL_VALUE 1000 15 | #define _APS_NEXT_SYMED_VALUE 101 16 | #endif 17 | #endif 18 | -------------------------------------------------------------------------------- /Samples/Chap17/Justify1/Justify1.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap17/Justify1/Justify1.res -------------------------------------------------------------------------------- /Samples/Chap17/Justify1/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap17\Justify1\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Justify1.rc 6 | // 7 | //C #define IDM_FILE_PRINT 40001 8 | //C #define IDM_FONT 40002 9 | const IDM_FILE_PRINT = 40001; 10 | //C #define IDM_ALIGN_LEFT 40003 11 | const IDM_FONT = 40002; 12 | //C #define IDM_ALIGN_RIGHT 40004 13 | const IDM_ALIGN_LEFT = 40003; 14 | //C #define IDM_ALIGN_CENTER 40005 15 | const IDM_ALIGN_RIGHT = 40004; 16 | //C #define IDM_ALIGN_JUSTIFIED 40006 17 | const IDM_ALIGN_CENTER = 40005; 18 | 19 | const IDM_ALIGN_JUSTIFIED = 40006; 20 | // Next default values for new objects 21 | // 22 | //C #ifdef APSTUDIO_INVOKED 23 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 24 | //C #define _APS_NEXT_RESOURCE_VALUE 102 25 | //C #define _APS_NEXT_COMMAND_VALUE 40007 26 | //C #define _APS_NEXT_CONTROL_VALUE 1000 27 | //C #define _APS_NEXT_SYMED_VALUE 101 28 | //C #endif 29 | //C #endif 30 | -------------------------------------------------------------------------------- /Samples/Chap17/Justify1/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Justify1.rc 4 | // 5 | #define IDM_FILE_PRINT 40001 6 | #define IDM_FONT 40002 7 | #define IDM_ALIGN_LEFT 40003 8 | #define IDM_ALIGN_RIGHT 40004 9 | #define IDM_ALIGN_CENTER 40005 10 | #define IDM_ALIGN_JUSTIFIED 40006 11 | 12 | // Next default values for new objects 13 | // 14 | #ifdef APSTUDIO_INVOKED 15 | #ifndef APSTUDIO_READONLY_SYMBOLS 16 | #define _APS_NEXT_RESOURCE_VALUE 102 17 | #define _APS_NEXT_COMMAND_VALUE 40007 18 | #define _APS_NEXT_CONTROL_VALUE 1000 19 | #define _APS_NEXT_SYMED_VALUE 101 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /Samples/Chap17/Justify2/Justify2.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap17/Justify2/Justify2.res -------------------------------------------------------------------------------- /Samples/Chap17/Justify2/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap17\Justify2\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Justify2.rc 6 | // 7 | //C #define IDM_FILE_PRINT 40001 8 | //C #define IDM_FONT 40002 9 | const IDM_FILE_PRINT = 40001; 10 | //C #define IDM_ALIGN_LEFT 40003 11 | const IDM_FONT = 40002; 12 | //C #define IDM_ALIGN_RIGHT 40004 13 | const IDM_ALIGN_LEFT = 40003; 14 | //C #define IDM_ALIGN_CENTER 40005 15 | const IDM_ALIGN_RIGHT = 40004; 16 | //C #define IDM_ALIGN_JUSTIFIED 40006 17 | const IDM_ALIGN_CENTER = 40005; 18 | 19 | const IDM_ALIGN_JUSTIFIED = 40006; 20 | // Next default values for new objects 21 | // 22 | //C #ifdef APSTUDIO_INVOKED 23 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 24 | //C #define _APS_NEXT_RESOURCE_VALUE 102 25 | //C #define _APS_NEXT_COMMAND_VALUE 40007 26 | //C #define _APS_NEXT_CONTROL_VALUE 1000 27 | //C #define _APS_NEXT_SYMED_VALUE 101 28 | //C #endif 29 | //C #endif 30 | -------------------------------------------------------------------------------- /Samples/Chap17/Justify2/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Justify2.rc 4 | // 5 | #define IDM_FILE_PRINT 40001 6 | #define IDM_FONT 40002 7 | #define IDM_ALIGN_LEFT 40003 8 | #define IDM_ALIGN_RIGHT 40004 9 | #define IDM_ALIGN_CENTER 40005 10 | #define IDM_ALIGN_JUSTIFIED 40006 11 | 12 | // Next default values for new objects 13 | // 14 | #ifdef APSTUDIO_INVOKED 15 | #ifndef APSTUDIO_READONLY_SYMBOLS 16 | #define _APS_NEXT_RESOURCE_VALUE 102 17 | #define _APS_NEXT_COMMAND_VALUE 40007 18 | #define _APS_NEXT_CONTROL_VALUE 1000 19 | #define _APS_NEXT_SYMED_VALUE 101 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /Samples/Chap17/PickFont/PickFont.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap17/PickFont/PickFont.res -------------------------------------------------------------------------------- /Samples/Chap17/UniChars/Unichars.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | UNICHARS MENU DISCARDABLE 56 | BEGIN 57 | MENUITEM "&Font!", IDM_FONT 58 | END 59 | 60 | #endif // English (U.S.) resources 61 | ///////////////////////////////////////////////////////////////////////////// 62 | 63 | 64 | 65 | #ifndef APSTUDIO_INVOKED 66 | ///////////////////////////////////////////////////////////////////////////// 67 | // 68 | // Generated from the TEXTINCLUDE 3 resource. 69 | // 70 | 71 | 72 | ///////////////////////////////////////////////////////////////////////////// 73 | #endif // not APSTUDIO_INVOKED 74 | 75 | -------------------------------------------------------------------------------- /Samples/Chap17/UniChars/Unichars.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap17/UniChars/Unichars.res -------------------------------------------------------------------------------- /Samples/Chap17/UniChars/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap17\UniChars\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Unichars.rc 6 | // 7 | //C #define IDM_FONT 40001 8 | 9 | const IDM_FONT = 40001; 10 | // Next default values for new objects 11 | // 12 | //C #ifdef APSTUDIO_INVOKED 13 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 14 | //C #define _APS_NEXT_RESOURCE_VALUE 102 15 | //C #define _APS_NEXT_COMMAND_VALUE 40002 16 | //C #define _APS_NEXT_CONTROL_VALUE 1000 17 | //C #define _APS_NEXT_SYMED_VALUE 101 18 | //C #endif 19 | //C #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap17/UniChars/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Unichars.rc 4 | // 5 | #define IDM_FONT 40001 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40002 13 | #define _APS_NEXT_CONTROL_VALUE 1000 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf10/Emf.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "windows.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE DISCARDABLE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE DISCARDABLE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE DISCARDABLE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Menu 53 | // 54 | 55 | EMF MENU DISCARDABLE 56 | BEGIN 57 | POPUP "&File" 58 | BEGIN 59 | MENUITEM "&Print...", IDM_PRINT 60 | MENUITEM SEPARATOR 61 | MENUITEM "E&xit", IDM_EXIT 62 | END 63 | POPUP "&Help" 64 | BEGIN 65 | MENUITEM "&About...", IDM_ABOUT 66 | END 67 | END 68 | 69 | #endif // English (U.S.) resources 70 | ///////////////////////////////////////////////////////////////////////////// 71 | 72 | 73 | 74 | #ifndef APSTUDIO_INVOKED 75 | ///////////////////////////////////////////////////////////////////////////// 76 | // 77 | // Generated from the TEXTINCLUDE 3 resource. 78 | // 79 | 80 | 81 | ///////////////////////////////////////////////////////////////////////////// 82 | #endif // not APSTUDIO_INVOKED 83 | 84 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf10/Emf.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf10/Emf.res -------------------------------------------------------------------------------- /Samples/Chap18/Emf10/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap18\Emf10\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Emf.rc 6 | // 7 | //C #define IDM_PRINT 40001 8 | //C #define IDM_EXIT 40002 9 | const IDM_PRINT = 40001; 10 | //C #define IDM_ABOUT 40003 11 | const IDM_EXIT = 40002; 12 | 13 | const IDM_ABOUT = 40003; 14 | // Next default values for new objects 15 | // 16 | //C #ifdef APSTUDIO_INVOKED 17 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 18 | //C #define _APS_NEXT_RESOURCE_VALUE 102 19 | //C #define _APS_NEXT_COMMAND_VALUE 40004 20 | //C #define _APS_NEXT_CONTROL_VALUE 1000 21 | //C #define _APS_NEXT_SYMED_VALUE 101 22 | //C #endif 23 | //C #endif 24 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf10/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Emf.rc 4 | // 5 | #define IDM_PRINT 40001 6 | #define IDM_EXIT 40002 7 | #define IDM_ABOUT 40003 8 | 9 | // Next default values for new objects 10 | // 11 | #ifdef APSTUDIO_INVOKED 12 | #ifndef APSTUDIO_READONLY_SYMBOLS 13 | #define _APS_NEXT_RESOURCE_VALUE 102 14 | #define _APS_NEXT_COMMAND_VALUE 40004 15 | #define _APS_NEXT_CONTROL_VALUE 1000 16 | #define _APS_NEXT_SYMED_VALUE 101 17 | #endif 18 | #endif 19 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf11/Emf.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf11/Emf.res -------------------------------------------------------------------------------- /Samples/Chap18/Emf11/emf11.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf11/emf11.emf -------------------------------------------------------------------------------- /Samples/Chap18/Emf11/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap18\Emf11\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Emf.rc 6 | // 7 | //C #define IDM_PRINT 40001 8 | //C #define IDM_EXIT 40002 9 | const IDM_PRINT = 40001; 10 | //C #define IDM_ABOUT 40003 11 | const IDM_EXIT = 40002; 12 | 13 | const IDM_ABOUT = 40003; 14 | // Next default values for new objects 15 | // 16 | //C #ifdef APSTUDIO_INVOKED 17 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 18 | //C #define _APS_NEXT_RESOURCE_VALUE 102 19 | //C #define _APS_NEXT_COMMAND_VALUE 40004 20 | //C #define _APS_NEXT_CONTROL_VALUE 1000 21 | //C #define _APS_NEXT_SYMED_VALUE 101 22 | //C #endif 23 | //C #endif 24 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf11/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Emf.rc 4 | // 5 | #define IDM_PRINT 40001 6 | #define IDM_EXIT 40002 7 | #define IDM_ABOUT 40003 8 | 9 | // Next default values for new objects 10 | // 11 | #ifdef APSTUDIO_INVOKED 12 | #ifndef APSTUDIO_READONLY_SYMBOLS 13 | #define _APS_NEXT_RESOURCE_VALUE 102 14 | #define _APS_NEXT_COMMAND_VALUE 40004 15 | #define _APS_NEXT_CONTROL_VALUE 1000 16 | #define _APS_NEXT_SYMED_VALUE 101 17 | #endif 18 | #endif 19 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf12/Emf.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf12/Emf.res -------------------------------------------------------------------------------- /Samples/Chap18/Emf12/emf12.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf12/emf12.emf -------------------------------------------------------------------------------- /Samples/Chap18/Emf12/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap18\Emf12\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Emf.rc 6 | // 7 | //C #define IDM_PRINT 40001 8 | //C #define IDM_EXIT 40002 9 | const IDM_PRINT = 40001; 10 | //C #define IDM_ABOUT 40003 11 | const IDM_EXIT = 40002; 12 | 13 | const IDM_ABOUT = 40003; 14 | // Next default values for new objects 15 | // 16 | //C #ifdef APSTUDIO_INVOKED 17 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 18 | //C #define _APS_NEXT_RESOURCE_VALUE 102 19 | //C #define _APS_NEXT_COMMAND_VALUE 40004 20 | //C #define _APS_NEXT_CONTROL_VALUE 1000 21 | //C #define _APS_NEXT_SYMED_VALUE 101 22 | //C #endif 23 | //C #endif 24 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf12/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Emf.rc 4 | // 5 | #define IDM_PRINT 40001 6 | #define IDM_EXIT 40002 7 | #define IDM_ABOUT 40003 8 | 9 | // Next default values for new objects 10 | // 11 | #ifdef APSTUDIO_INVOKED 12 | #ifndef APSTUDIO_READONLY_SYMBOLS 13 | #define _APS_NEXT_RESOURCE_VALUE 102 14 | #define _APS_NEXT_COMMAND_VALUE 40004 15 | #define _APS_NEXT_CONTROL_VALUE 1000 16 | #define _APS_NEXT_SYMED_VALUE 101 17 | #endif 18 | #endif 19 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf13/Emf.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf13/Emf.res -------------------------------------------------------------------------------- /Samples/Chap18/Emf13/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap18\Emf13\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Emf.rc 6 | // 7 | //C #define IDM_PRINT 40001 8 | //C #define IDM_EXIT 40002 9 | const IDM_PRINT = 40001; 10 | //C #define IDM_ABOUT 40003 11 | const IDM_EXIT = 40002; 12 | 13 | const IDM_ABOUT = 40003; 14 | // Next default values for new objects 15 | // 16 | //C #ifdef APSTUDIO_INVOKED 17 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 18 | //C #define _APS_NEXT_RESOURCE_VALUE 102 19 | //C #define _APS_NEXT_COMMAND_VALUE 40004 20 | //C #define _APS_NEXT_CONTROL_VALUE 1000 21 | //C #define _APS_NEXT_SYMED_VALUE 101 22 | //C #endif 23 | //C #endif 24 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf13/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Emf.rc 4 | // 5 | #define IDM_PRINT 40001 6 | #define IDM_EXIT 40002 7 | #define IDM_ABOUT 40003 8 | 9 | // Next default values for new objects 10 | // 11 | #ifdef APSTUDIO_INVOKED 12 | #ifndef APSTUDIO_READONLY_SYMBOLS 13 | #define _APS_NEXT_RESOURCE_VALUE 102 14 | #define _APS_NEXT_COMMAND_VALUE 40004 15 | #define _APS_NEXT_CONTROL_VALUE 1000 16 | #define _APS_NEXT_SYMED_VALUE 101 17 | #endif 18 | #endif 19 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf2/emf2.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf2/emf2.emf -------------------------------------------------------------------------------- /Samples/Chap18/Emf3/emf3.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf3/emf3.emf -------------------------------------------------------------------------------- /Samples/Chap18/Emf4/emf4.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf4/emf4.emf -------------------------------------------------------------------------------- /Samples/Chap18/Emf6/Emf6.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf6/Emf6.pdb -------------------------------------------------------------------------------- /Samples/Chap18/Emf6/emf3.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf6/emf3.emf -------------------------------------------------------------------------------- /Samples/Chap18/Emf7/emf7.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf7/emf7.emf -------------------------------------------------------------------------------- /Samples/Chap18/Emf8/Emf.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf8/Emf.res -------------------------------------------------------------------------------- /Samples/Chap18/Emf8/emf8.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf8/emf8.emf -------------------------------------------------------------------------------- /Samples/Chap18/Emf8/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap18\Emf8\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Emf.rc 6 | // 7 | //C #define IDM_PRINT 40001 8 | //C #define IDM_EXIT 40002 9 | const IDM_PRINT = 40001; 10 | //C #define IDM_ABOUT 40003 11 | const IDM_EXIT = 40002; 12 | 13 | const IDM_ABOUT = 40003; 14 | // Next default values for new objects 15 | // 16 | //C #ifdef APSTUDIO_INVOKED 17 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 18 | //C #define _APS_NEXT_RESOURCE_VALUE 102 19 | //C #define _APS_NEXT_COMMAND_VALUE 40004 20 | //C #define _APS_NEXT_CONTROL_VALUE 1000 21 | //C #define _APS_NEXT_SYMED_VALUE 101 22 | //C #endif 23 | //C #endif 24 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf8/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Emf.rc 4 | // 5 | #define IDM_PRINT 40001 6 | #define IDM_EXIT 40002 7 | #define IDM_ABOUT 40003 8 | 9 | // Next default values for new objects 10 | // 11 | #ifdef APSTUDIO_INVOKED 12 | #ifndef APSTUDIO_READONLY_SYMBOLS 13 | #define _APS_NEXT_RESOURCE_VALUE 102 14 | #define _APS_NEXT_COMMAND_VALUE 40004 15 | #define _APS_NEXT_CONTROL_VALUE 1000 16 | #define _APS_NEXT_SYMED_VALUE 101 17 | #endif 18 | #endif 19 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf9/Emf.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/Emf9/Emf.res -------------------------------------------------------------------------------- /Samples/Chap18/Emf9/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap18\Emf9\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Emf.rc 6 | // 7 | //C #define IDM_PRINT 40001 8 | //C #define IDM_EXIT 40002 9 | const IDM_PRINT = 40001; 10 | //C #define IDM_ABOUT 40003 11 | const IDM_EXIT = 40002; 12 | 13 | const IDM_ABOUT = 40003; 14 | // Next default values for new objects 15 | // 16 | //C #ifdef APSTUDIO_INVOKED 17 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 18 | //C #define _APS_NEXT_RESOURCE_VALUE 102 19 | //C #define _APS_NEXT_COMMAND_VALUE 40004 20 | //C #define _APS_NEXT_CONTROL_VALUE 1000 21 | //C #define _APS_NEXT_SYMED_VALUE 101 22 | //C #endif 23 | //C #endif 24 | -------------------------------------------------------------------------------- /Samples/Chap18/Emf9/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Emf.rc 4 | // 5 | #define IDM_PRINT 40001 6 | #define IDM_EXIT 40002 7 | #define IDM_ABOUT 40003 8 | 9 | // Next default values for new objects 10 | // 11 | #ifdef APSTUDIO_INVOKED 12 | #ifndef APSTUDIO_READONLY_SYMBOLS 13 | #define _APS_NEXT_RESOURCE_VALUE 102 14 | #define _APS_NEXT_COMMAND_VALUE 40004 15 | #define _APS_NEXT_CONTROL_VALUE 1000 16 | #define _APS_NEXT_SYMED_VALUE 101 17 | #endif 18 | #endif 19 | -------------------------------------------------------------------------------- /Samples/Chap18/EmfView/EmfView.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap18/EmfView/EmfView.res -------------------------------------------------------------------------------- /Samples/Chap18/EmfView/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap18\EmfView\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by EmfView.rc 6 | // 7 | //C #define IDM_FILE_OPEN 40001 8 | //C #define IDM_FILE_SAVE_AS 40002 9 | const IDM_FILE_OPEN = 40001; 10 | //C #define IDM_FILE_PRINT 40003 11 | const IDM_FILE_SAVE_AS = 40002; 12 | //C #define IDM_FILE_PROPERTIES 40004 13 | const IDM_FILE_PRINT = 40003; 14 | //C #define IDM_APP_EXIT 40005 15 | const IDM_FILE_PROPERTIES = 40004; 16 | //C #define IDM_EDIT_CUT 40006 17 | const IDM_APP_EXIT = 40005; 18 | //C #define IDM_EDIT_COPY 40007 19 | const IDM_EDIT_CUT = 40006; 20 | //C #define IDM_EDIT_PASTE 40008 21 | const IDM_EDIT_COPY = 40007; 22 | //C #define IDM_EDIT_DELETE 40009 23 | const IDM_EDIT_PASTE = 40008; 24 | //C #define IDM_APP_ABOUT 40010 25 | const IDM_EDIT_DELETE = 40009; 26 | 27 | const IDM_APP_ABOUT = 40010; 28 | // Next default values for new objects 29 | // 30 | //C #ifdef APSTUDIO_INVOKED 31 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 32 | //C #define _APS_NEXT_RESOURCE_VALUE 103 33 | //C #define _APS_NEXT_COMMAND_VALUE 40011 34 | //C #define _APS_NEXT_CONTROL_VALUE 1000 35 | //C #define _APS_NEXT_SYMED_VALUE 101 36 | //C #endif 37 | //C #endif 38 | -------------------------------------------------------------------------------- /Samples/Chap18/EmfView/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by EmfView.rc 4 | // 5 | #define IDM_FILE_OPEN 40001 6 | #define IDM_FILE_SAVE_AS 40002 7 | #define IDM_FILE_PRINT 40003 8 | #define IDM_FILE_PROPERTIES 40004 9 | #define IDM_APP_EXIT 40005 10 | #define IDM_EDIT_CUT 40006 11 | #define IDM_EDIT_COPY 40007 12 | #define IDM_EDIT_PASTE 40008 13 | #define IDM_EDIT_DELETE 40009 14 | #define IDM_APP_ABOUT 40010 15 | 16 | // Next default values for new objects 17 | // 18 | #ifdef APSTUDIO_INVOKED 19 | #ifndef APSTUDIO_READONLY_SYMBOLS 20 | #define _APS_NEXT_RESOURCE_VALUE 103 21 | #define _APS_NEXT_COMMAND_VALUE 40011 22 | #define _APS_NEXT_CONTROL_VALUE 1000 23 | #define _APS_NEXT_SYMED_VALUE 101 24 | #endif 25 | #endif 26 | -------------------------------------------------------------------------------- /Samples/Chap19/MDIDemo/MDIDemo.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap19/MDIDemo/MDIDemo.res -------------------------------------------------------------------------------- /Samples/Chap19/MDIDemo/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap19\MDIDemo\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by MDIDemo.rc 6 | // 7 | //C #define IDM_FILE_NEWHELLO 40001 8 | //C #define IDM_FILE_NEWRECT 40002 9 | const IDM_FILE_NEWHELLO = 40001; 10 | //C #define IDM_APP_EXIT 40003 11 | const IDM_FILE_NEWRECT = 40002; 12 | //C #define IDM_FILE_CLOSE 40004 13 | const IDM_APP_EXIT = 40003; 14 | //C #define IDM_COLOR_BLACK 40005 15 | const IDM_FILE_CLOSE = 40004; 16 | //C #define IDM_COLOR_RED 40006 17 | const IDM_COLOR_BLACK = 40005; 18 | //C #define IDM_COLOR_GREEN 40007 19 | const IDM_COLOR_RED = 40006; 20 | //C #define IDM_COLOR_BLUE 40008 21 | const IDM_COLOR_GREEN = 40007; 22 | //C #define IDM_COLOR_WHITE 40009 23 | const IDM_COLOR_BLUE = 40008; 24 | //C #define IDM_WINDOW_CASCADE 40010 25 | const IDM_COLOR_WHITE = 40009; 26 | //C #define IDM_WINDOW_TILE 40011 27 | const IDM_WINDOW_CASCADE = 40010; 28 | //C #define IDM_WINDOW_ARRANGE 40012 29 | const IDM_WINDOW_TILE = 40011; 30 | //C #define IDM_WINDOW_CLOSEALL 40013 31 | const IDM_WINDOW_ARRANGE = 40012; 32 | 33 | const IDM_WINDOW_CLOSEALL = 40013; 34 | // Next default values for new objects 35 | // 36 | //C #ifdef APSTUDIO_INVOKED 37 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 38 | //C #define _APS_NEXT_RESOURCE_VALUE 105 39 | //C #define _APS_NEXT_COMMAND_VALUE 40015 40 | //C #define _APS_NEXT_CONTROL_VALUE 1000 41 | //C #define _APS_NEXT_SYMED_VALUE 101 42 | //C #endif 43 | //C #endif 44 | -------------------------------------------------------------------------------- /Samples/Chap19/MDIDemo/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by MDIDemo.rc 4 | // 5 | #define IDM_FILE_NEWHELLO 40001 6 | #define IDM_FILE_NEWRECT 40002 7 | #define IDM_APP_EXIT 40003 8 | #define IDM_FILE_CLOSE 40004 9 | #define IDM_COLOR_BLACK 40005 10 | #define IDM_COLOR_RED 40006 11 | #define IDM_COLOR_GREEN 40007 12 | #define IDM_COLOR_BLUE 40008 13 | #define IDM_COLOR_WHITE 40009 14 | #define IDM_WINDOW_CASCADE 40010 15 | #define IDM_WINDOW_TILE 40011 16 | #define IDM_WINDOW_ARRANGE 40012 17 | #define IDM_WINDOW_CLOSEALL 40013 18 | 19 | // Next default values for new objects 20 | // 21 | #ifdef APSTUDIO_INVOKED 22 | #ifndef APSTUDIO_READONLY_SYMBOLS 23 | #define _APS_NEXT_RESOURCE_VALUE 105 24 | #define _APS_NEXT_COMMAND_VALUE 40015 25 | #define _APS_NEXT_CONTROL_VALUE 1000 26 | #define _APS_NEXT_SYMED_VALUE 101 27 | #endif 28 | #endif 29 | -------------------------------------------------------------------------------- /Samples/Chap21/EdrTest/.gitignore: -------------------------------------------------------------------------------- 1 | !*.di 2 | -------------------------------------------------------------------------------- /Samples/Chap21/EdrTest/EdrLib.d: -------------------------------------------------------------------------------- 1 | module EdrLib; 2 | 3 | pragma(lib, "gdi32.lib"); 4 | pragma(lib, "comdlg32.lib"); 5 | import core.sys.windows.windef; 6 | import core.sys.windows.wingdi; 7 | import std.utf : count, toUTFz, toUTF16z; 8 | 9 | export extern(Windows) BOOL EdrCenterText(HDC hdc, PRECT prc, string pString) 10 | { 11 | SIZE size; 12 | GetTextExtentPoint32(hdc, toUTF16z(pString), pString.count, &size); 13 | return TextOut(hdc, (prc.right - prc.left - size.cx) / 2, 14 | (prc.bottom - prc.top - size.cy) / 2, toUTF16z(pString), pString.count); 15 | } 16 | -------------------------------------------------------------------------------- /Samples/Chap21/EdrTest/EdrLib.di: -------------------------------------------------------------------------------- 1 | // D import file generated from 'EdrLib.d' 2 | module EdrLib; 3 | pragma (lib, "gdi32.lib"); 4 | pragma (lib, "comdlg32.lib"); 5 | import core.sys.windows.windef; 6 | import core.sys.windows.wingdi; 7 | import std.utf : count, toUTFz, toUTF16z; 8 | export extern (Windows) BOOL EdrCenterText(HDC hdc, PRECT prc, string pString); 9 | -------------------------------------------------------------------------------- /Samples/Chap21/EdrTest/broken_gdc_build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | gdc -v2 -mwindows -I..\..\..\ -fversion=Unicode -fversion=WindowsXP -shared -o mydll.dll mydll.d EdrLib.d -Wl,--out-implib,implibmydll.a 3 | gdc -v2 -fintfc -fsyntax-only -H mydll.d 4 | 5 | :: ~ Note: broken: 6 | :: ~ gdc -v2 -mwindows -I..\..\..\ -L-L"%CD%" -Wl,%CD%\gdc_win32.a -fversion=Unicode -fversion=WindowsXP -o EdrTest.exe EdrTest.d implibmydll.a 7 | -------------------------------------------------------------------------------- /Samples/Chap21/EdrTest/dmd_build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | dmd -m32omf -H -ofEdrLib.dll -L/IMPLIB -I..\..\..\WindowsAPI ..\..\..\dmd_win32.lib -I. -version=Unicode -version=WindowsXP mydll.d EdrLib.d %* 3 | dmd -m32omf -ofEdrTest.exe -I..\..\..\WindowsAPI ..\..\..\dmd_win32.lib -I. -version=Unicode -version=WindowsXP EdrTest.d EdrLib.lib %* 4 | -------------------------------------------------------------------------------- /Samples/Chap21/EdrTest/mydll.d: -------------------------------------------------------------------------------- 1 | module mydll; 2 | 3 | pragma(lib, "gdi32.lib"); 4 | pragma(lib, "comdlg32.lib"); 5 | pragma(lib, "winmm.lib"); 6 | import core.sys.windows.windef; 7 | import core.sys.windows.winuser; 8 | import core.sys.windows.wingdi; 9 | import core.sys.windows.winbase; 10 | import core.sys.windows.commdlg; 11 | import core.sys.windows.mmsystem; 12 | 13 | version(none) 14 | { 15 | extern(C) int _tls_callbacks_a; 16 | } 17 | 18 | __gshared HINSTANCE g_hInst; 19 | 20 | extern (Windows) 21 | BOOL DllMain(HINSTANCE hInstance, ULONG ulReason, LPVOID pvReserved) 22 | { 23 | import core.sys.windows.dll; 24 | switch (ulReason) 25 | { 26 | case DLL_PROCESS_ATTACH: 27 | g_hInst = hInstance; 28 | dll_process_attach( hInstance, true ); 29 | break; 30 | 31 | case DLL_PROCESS_DETACH: 32 | dll_process_detach( hInstance, true ); 33 | break; 34 | 35 | case DLL_THREAD_ATTACH: 36 | dll_thread_attach( true, true ); 37 | break; 38 | 39 | case DLL_THREAD_DETACH: 40 | dll_thread_detach( true, true ); 41 | break; 42 | 43 | default: 44 | } 45 | 46 | return true; 47 | } 48 | -------------------------------------------------------------------------------- /Samples/Chap21/EdrTest/mydll.di: -------------------------------------------------------------------------------- 1 | // D import file generated from 'mydll.d' 2 | module mydll; 3 | pragma (lib, "gdi32.lib"); 4 | pragma (lib, "comdlg32.lib"); 5 | pragma (lib, "winmm.lib"); 6 | import core.sys.windows.windef; 7 | import core.sys.windows.winuser; 8 | import core.sys.windows.wingdi; 9 | import core.sys.windows.winbase; 10 | import core.sys.windows.commdlg; 11 | import core.sys.windows.mmsystem; 12 | version (none) 13 | { 14 | extern (C) int _tls_callbacks_a; 15 | } 16 | __gshared HINSTANCE g_hInst; 17 | extern (Windows) BOOL DllMain(HINSTANCE hInstance, ULONG ulReason, LPVOID pvReserved); 18 | -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/BITMAP1.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap21/ShowBit/BITMAP1.BMP -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/BITMAP2.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap21/ShowBit/BITMAP2.BMP -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/BITMAP3.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap21/ShowBit/BITMAP3.BMP -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/BITMAP4.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap21/ShowBit/BITMAP4.BMP -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/BITMAP5.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap21/ShowBit/BITMAP5.BMP -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/BITMAP6.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap21/ShowBit/BITMAP6.BMP -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/BITMAP7.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap21/ShowBit/BITMAP7.BMP -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/BITMAP8.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap21/ShowBit/BITMAP8.BMP -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/BITMAP9.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap21/ShowBit/BITMAP9.BMP -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/BitLib.d: -------------------------------------------------------------------------------- 1 | module BitLib; 2 | 3 | pragma(lib, "gdi32.lib"); 4 | pragma(lib, "comdlg32.lib"); 5 | pragma(lib, "winmm.lib"); 6 | import core.sys.windows.windef; 7 | import core.sys.windows.winuser; 8 | import core.sys.windows.wingdi; 9 | import core.sys.windows.winbase; 10 | import core.sys.windows.commdlg; 11 | import core.sys.windows.mmsystem; 12 | import core.sys.windows.dll; 13 | 14 | __gshared HINSTANCE g_hInst; 15 | 16 | extern (Windows) 17 | BOOL DllMain(HINSTANCE hInstance, ULONG ulReason, LPVOID pvReserved) 18 | { 19 | switch (ulReason) 20 | { 21 | case DLL_PROCESS_ATTACH: 22 | g_hInst = hInstance; 23 | dll_process_attach( hInstance, true ); 24 | break; 25 | 26 | case DLL_PROCESS_DETACH: 27 | dll_process_detach( hInstance, true ); 28 | break; 29 | 30 | case DLL_THREAD_ATTACH: 31 | dll_thread_attach( true, true ); 32 | break; 33 | 34 | case DLL_THREAD_DETACH: 35 | dll_thread_detach( true, true ); 36 | break; 37 | 38 | default: 39 | } 40 | 41 | return true; 42 | } 43 | -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/BitLib.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap21/ShowBit/BitLib.res -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/dmd_build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | dmd -m32omf -ofBitLib.dll -I..\..\..\WindowsAPI ..\..\..\dmd_win32.lib -I. -version=Unicode -version=WindowsXP BitLib.d BitLib.res %* 3 | dmd -m32omf -ofShowBit.exe -I..\..\..\WindowsAPI ..\..\..\dmd_win32.lib -I. -version=Unicode -version=WindowsXP ShowBit.d %* 4 | -------------------------------------------------------------------------------- /Samples/Chap21/ShowBit/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by BitLib.rc 4 | // 5 | 6 | // Next default values for new objects 7 | // 8 | #ifdef APSTUDIO_INVOKED 9 | #ifndef APSTUDIO_READONLY_SYMBOLS 10 | #define _APS_NEXT_RESOURCE_VALUE 110 11 | #define _APS_NEXT_COMMAND_VALUE 40001 12 | #define _APS_NEXT_CONTROL_VALUE 1000 13 | #define _APS_NEXT_SYMED_VALUE 101 14 | #endif 15 | #endif 16 | -------------------------------------------------------------------------------- /Samples/Chap21/StrProg/StrLib.d: -------------------------------------------------------------------------------- 1 | module StrLib; 2 | 3 | import std.algorithm; 4 | 5 | enum MAX_STRINGS = 256; 6 | enum MAX_LENGTH = 64; 7 | 8 | import std.string; 9 | 10 | __gshared void*[string] szStrings; 11 | __gshared string[] sortestrings; 12 | 13 | export void AddString(string pStringIn) 14 | { 15 | if (pStringIn !in szStrings) 16 | szStrings[pStringIn] = null; 17 | } 18 | 19 | export void DeleteString(string pStringIn) 20 | { 21 | if (pStringIn in szStrings) 22 | szStrings.remove(pStringIn); 23 | } 24 | 25 | export string[] GetStrings() 26 | { 27 | sortestrings = szStrings.keys; 28 | sortestrings.sort; 29 | return sortestrings; 30 | } 31 | -------------------------------------------------------------------------------- /Samples/Chap21/StrProg/StrProg.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap21/StrProg/StrProg.res -------------------------------------------------------------------------------- /Samples/Chap21/StrProg/dllmodule.d: -------------------------------------------------------------------------------- 1 | module dllmodule; 2 | 3 | pragma(lib, "gdi32.lib"); 4 | pragma(lib, "comdlg32.lib"); 5 | import core.sys.windows.windef; 6 | import core.sys.windows.winuser; 7 | import core.sys.windows.wingdi; 8 | import core.sys.windows.winbase; 9 | import core.sys.windows.commdlg; 10 | import core.sys.windows.dll; 11 | 12 | __gshared HINSTANCE g_hInst; 13 | 14 | extern (Windows) 15 | BOOL DllMain(HINSTANCE hInstance, ULONG ulReason, LPVOID pvReserved) 16 | { 17 | switch (ulReason) 18 | { 19 | case DLL_PROCESS_ATTACH: 20 | g_hInst = hInstance; 21 | dll_process_attach( hInstance, true ); 22 | break; 23 | 24 | case DLL_PROCESS_DETACH: 25 | dll_process_detach( hInstance, true ); 26 | break; 27 | 28 | case DLL_THREAD_ATTACH: 29 | dll_thread_attach( true, true ); 30 | break; 31 | 32 | case DLL_THREAD_DETACH: 33 | dll_thread_detach( true, true ); 34 | break; 35 | 36 | default: 37 | } 38 | 39 | return true; 40 | } 41 | -------------------------------------------------------------------------------- /Samples/Chap21/StrProg/dmd_build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | dmd -m32omf -H -ofStrLib.dll -L/IMPLIB -I..\..\..\WindowsAPI ..\..\..\dmd_win32.lib -I. -version=Unicode -version=WindowsXP StrLib.d dllmodule.d %* 3 | dmd -m32omf -ofStrProg.exe -I..\..\..\WindowsAPI ..\..\..\dmd_win32.lib -I. -version=Unicode -version=WindowsXP StrProg.d StrLib.lib StrProg.res %* 4 | -------------------------------------------------------------------------------- /Samples/Chap21/StrProg/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by StrProg.rc 6 | // 7 | //C #define IDC_STRING 1000 8 | //C #define IDM_ENTER 40001 9 | const IDC_STRING = 1000; 10 | //C #define IDM_DELETE 40002 11 | const IDM_ENTER = 40001; 12 | //C #define IDC_STATIC -1 13 | const IDM_DELETE = 40002; 14 | 15 | const IDC_STATIC = -1; 16 | // Next default values for new objects 17 | // 18 | //C #ifdef APSTUDIO_INVOKED 19 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 20 | //C #define _APS_NEXT_RESOURCE_VALUE 104 21 | //C #define _APS_NEXT_COMMAND_VALUE 40003 22 | //C #define _APS_NEXT_CONTROL_VALUE 1001 23 | //C #define _APS_NEXT_SYMED_VALUE 101 24 | //C #endif 25 | //C #endif 26 | -------------------------------------------------------------------------------- /Samples/Chap21/StrProg/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by StrProg.rc 4 | // 5 | #define IDC_STRING 1000 6 | #define IDM_ENTER 40001 7 | #define IDM_DELETE 40002 8 | #define IDC_STATIC -1 9 | 10 | // Next default values for new objects 11 | // 12 | #ifdef APSTUDIO_INVOKED 13 | #ifndef APSTUDIO_READONLY_SYMBOLS 14 | #define _APS_NEXT_RESOURCE_VALUE 104 15 | #define _APS_NEXT_COMMAND_VALUE 40003 16 | #define _APS_NEXT_CONTROL_VALUE 1001 17 | #define _APS_NEXT_SYMED_VALUE 101 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap22/AddSynth/AddSynth.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap22/AddSynth/AddSynth.res -------------------------------------------------------------------------------- /Samples/Chap22/AddSynth/Clarinet.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap22/AddSynth/Clarinet.wav -------------------------------------------------------------------------------- /Samples/Chap22/AddSynth/Oboe.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap22/AddSynth/Oboe.wav -------------------------------------------------------------------------------- /Samples/Chap22/AddSynth/Trumpet.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap22/AddSynth/Trumpet.wav -------------------------------------------------------------------------------- /Samples/Chap22/AddSynth/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap22\AddSynth\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by AddSynth.rc 6 | // 7 | //C #define IDC_TRUMPET 1000 8 | //C #define IDC_OBOE 1001 9 | const IDC_TRUMPET = 1000; 10 | //C #define IDC_CLARINET 1002 11 | const IDC_OBOE = 1001; 12 | //C #define IDC_TEXT 1003 13 | const IDC_CLARINET = 1002; 14 | 15 | const IDC_TEXT = 1003; 16 | // Next default values for new objects 17 | // 18 | //C #ifdef APSTUDIO_INVOKED 19 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 20 | //C #define _APS_NEXT_RESOURCE_VALUE 102 21 | //C #define _APS_NEXT_COMMAND_VALUE 40001 22 | //C #define _APS_NEXT_CONTROL_VALUE 1004 23 | //C #define _APS_NEXT_SYMED_VALUE 101 24 | //C #endif 25 | //C #endif 26 | -------------------------------------------------------------------------------- /Samples/Chap22/AddSynth/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by AddSynth.rc 4 | // 5 | #define IDC_TRUMPET 1000 6 | #define IDC_OBOE 1001 7 | #define IDC_CLARINET 1002 8 | #define IDC_TEXT 1003 9 | 10 | // Next default values for new objects 11 | // 12 | #ifdef APSTUDIO_INVOKED 13 | #ifndef APSTUDIO_READONLY_SYMBOLS 14 | #define _APS_NEXT_RESOURCE_VALUE 102 15 | #define _APS_NEXT_COMMAND_VALUE 40001 16 | #define _APS_NEXT_CONTROL_VALUE 1004 17 | #define _APS_NEXT_SYMED_VALUE 101 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap22/Drum/DRUM.ICO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap22/Drum/DRUM.ICO -------------------------------------------------------------------------------- /Samples/Chap22/Drum/Drum.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap22/Drum/Drum.res -------------------------------------------------------------------------------- /Samples/Chap22/Drum/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap22\Drum\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Drum.rc 6 | // 7 | //C #define IDM_FILE_NEW 40001 8 | //C #define IDM_FILE_OPEN 40002 9 | const IDM_FILE_NEW = 40001; 10 | //C #define IDM_FILE_SAVE 40003 11 | const IDM_FILE_OPEN = 40002; 12 | //C #define IDM_FILE_SAVE_AS 40004 13 | const IDM_FILE_SAVE = 40003; 14 | //C #define IDM_APP_EXIT 40005 15 | const IDM_FILE_SAVE_AS = 40004; 16 | //C #define IDM_SEQUENCE_RUNNING 40006 17 | const IDM_APP_EXIT = 40005; 18 | //C #define IDM_SEQUENCE_STOPPED 40007 19 | const IDM_SEQUENCE_RUNNING = 40006; 20 | //C #define IDM_APP_ABOUT 40008 21 | const IDM_SEQUENCE_STOPPED = 40007; 22 | 23 | const IDM_APP_ABOUT = 40008; 24 | // Next default values for new objects 25 | // 26 | //C #ifdef APSTUDIO_INVOKED 27 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 28 | //C #define _APS_NEXT_RESOURCE_VALUE 104 29 | //C #define _APS_NEXT_COMMAND_VALUE 40009 30 | //C #define _APS_NEXT_CONTROL_VALUE 1000 31 | //C #define _APS_NEXT_SYMED_VALUE 101 32 | //C #endif 33 | //C #endif 34 | -------------------------------------------------------------------------------- /Samples/Chap22/Drum/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Drum.rc 4 | // 5 | #define IDM_FILE_NEW 40001 6 | #define IDM_FILE_OPEN 40002 7 | #define IDM_FILE_SAVE 40003 8 | #define IDM_FILE_SAVE_AS 40004 9 | #define IDM_APP_EXIT 40005 10 | #define IDM_SEQUENCE_RUNNING 40006 11 | #define IDM_SEQUENCE_STOPPED 40007 12 | #define IDM_APP_ABOUT 40008 13 | 14 | // Next default values for new objects 15 | // 16 | #ifdef APSTUDIO_INVOKED 17 | #ifndef APSTUDIO_READONLY_SYMBOLS 18 | #define _APS_NEXT_RESOURCE_VALUE 104 19 | #define _APS_NEXT_COMMAND_VALUE 40009 20 | #define _APS_NEXT_CONTROL_VALUE 1000 21 | #define _APS_NEXT_SYMED_VALUE 101 22 | #endif 23 | #endif 24 | -------------------------------------------------------------------------------- /Samples/Chap22/SineWave/SineWave.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap22/SineWave/SineWave.res -------------------------------------------------------------------------------- /Samples/Chap22/SineWave/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap22\SineWave\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by SineWave.rc 6 | // 7 | //C #define IDC_STATIC -1 8 | //C #define IDC_SCROLL 1000 9 | const IDC_STATIC = -1; 10 | //C #define IDC_TEXT 1001 11 | const IDC_SCROLL = 1000; 12 | //C #define IDC_ONOFF 1002 13 | const IDC_TEXT = 1001; 14 | 15 | const IDC_ONOFF = 1002; 16 | // Next default values for new objects 17 | // 18 | //C #ifdef APSTUDIO_INVOKED 19 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 20 | //C #define _APS_NEXT_RESOURCE_VALUE 102 21 | //C #define _APS_NEXT_COMMAND_VALUE 40001 22 | //C #define _APS_NEXT_CONTROL_VALUE 1003 23 | //C #define _APS_NEXT_SYMED_VALUE 101 24 | //C #endif 25 | //C #endif 26 | -------------------------------------------------------------------------------- /Samples/Chap22/SineWave/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by SineWave.rc 4 | // 5 | #define IDC_STATIC -1 6 | #define IDC_SCROLL 1000 7 | #define IDC_TEXT 1001 8 | #define IDC_ONOFF 1002 9 | 10 | // Next default values for new objects 11 | // 12 | #ifdef APSTUDIO_INVOKED 13 | #ifndef APSTUDIO_READONLY_SYMBOLS 14 | #define _APS_NEXT_RESOURCE_VALUE 102 15 | #define _APS_NEXT_COMMAND_VALUE 40001 16 | #define _APS_NEXT_CONTROL_VALUE 1003 17 | #define _APS_NEXT_SYMED_VALUE 101 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /Samples/Chap22/TestMci/TestMci.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap22/TestMci/TestMci.res -------------------------------------------------------------------------------- /Samples/Chap22/TestMci/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap22\TestMci\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by TestMci.rc 6 | // 7 | //C #define IDC_MAIN_EDIT 1000 8 | //C #define IDC_NOTIFY_MESSAGE 1005 9 | const IDC_MAIN_EDIT = 1000; 10 | //C #define IDC_NOTIFY_ID 1006 11 | const IDC_NOTIFY_MESSAGE = 1005; 12 | //C #define IDC_NOTIFY_SUCCESSFUL 1007 13 | const IDC_NOTIFY_ID = 1006; 14 | //C #define IDC_NOTIFY_SUPERSEDED 1008 15 | const IDC_NOTIFY_SUCCESSFUL = 1007; 16 | //C #define IDC_NOTIFY_ABORTED 1009 17 | const IDC_NOTIFY_SUPERSEDED = 1008; 18 | //C #define IDC_NOTIFY_FAILURE 1010 19 | const IDC_NOTIFY_ABORTED = 1009; 20 | //C #define IDC_SIGNAL_MESSAGE 1011 21 | const IDC_NOTIFY_FAILURE = 1010; 22 | //C #define IDC_SIGNAL_ID 1012 23 | const IDC_SIGNAL_MESSAGE = 1011; 24 | //C #define IDC_SIGNAL_PARAM 1013 25 | const IDC_SIGNAL_ID = 1012; 26 | //C #define IDC_RETURN_STRING 1014 27 | const IDC_SIGNAL_PARAM = 1013; 28 | //C #define IDC_ERROR_STRING 1015 29 | const IDC_RETURN_STRING = 1014; 30 | //C #define IDC_DEVICES 1016 31 | const IDC_ERROR_STRING = 1015; 32 | //C #define IDC_STATIC -1 33 | const IDC_DEVICES = 1016; 34 | 35 | const IDC_STATIC = -1; 36 | // Next default values for new objects 37 | // 38 | //C #ifdef APSTUDIO_INVOKED 39 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 40 | //C #define _APS_NEXT_RESOURCE_VALUE 102 41 | //C #define _APS_NEXT_COMMAND_VALUE 40001 42 | //C #define _APS_NEXT_CONTROL_VALUE 1017 43 | //C #define _APS_NEXT_SYMED_VALUE 101 44 | //C #endif 45 | //C #endif 46 | -------------------------------------------------------------------------------- /Samples/Chap22/TestMci/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by TestMci.rc 4 | // 5 | #define IDC_MAIN_EDIT 1000 6 | #define IDC_NOTIFY_MESSAGE 1005 7 | #define IDC_NOTIFY_ID 1006 8 | #define IDC_NOTIFY_SUCCESSFUL 1007 9 | #define IDC_NOTIFY_SUPERSEDED 1008 10 | #define IDC_NOTIFY_ABORTED 1009 11 | #define IDC_NOTIFY_FAILURE 1010 12 | #define IDC_SIGNAL_MESSAGE 1011 13 | #define IDC_SIGNAL_ID 1012 14 | #define IDC_SIGNAL_PARAM 1013 15 | #define IDC_RETURN_STRING 1014 16 | #define IDC_ERROR_STRING 1015 17 | #define IDC_DEVICES 1016 18 | #define IDC_STATIC -1 19 | 20 | // Next default values for new objects 21 | // 22 | #ifdef APSTUDIO_INVOKED 23 | #ifndef APSTUDIO_READONLY_SYMBOLS 24 | #define _APS_NEXT_RESOURCE_VALUE 102 25 | #define _APS_NEXT_COMMAND_VALUE 40001 26 | #define _APS_NEXT_CONTROL_VALUE 1017 27 | #define _APS_NEXT_SYMED_VALUE 101 28 | #endif 29 | #endif 30 | -------------------------------------------------------------------------------- /Samples/Chap22/todo/Record1/Record.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap22/todo/Record1/Record.res -------------------------------------------------------------------------------- /Samples/Chap22/todo/Record1/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from .\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by Record.rc 6 | // 7 | //C #define IDC_RECORD_BEG 1000 8 | //C #define IDC_RECORD_END 1001 9 | const IDC_RECORD_BEG = 1000; 10 | //C #define IDC_PLAY_BEG 1002 11 | const IDC_RECORD_END = 1001; 12 | //C #define IDC_PLAY_PAUSE 1003 13 | const IDC_PLAY_BEG = 1002; 14 | //C #define IDC_PLAY_END 1004 15 | const IDC_PLAY_PAUSE = 1003; 16 | //C #define IDC_PLAY_REV 1005 17 | const IDC_PLAY_END = 1004; 18 | //C #define IDC_PLAY_REP 1006 19 | const IDC_PLAY_REV = 1005; 20 | //C #define IDC_PLAY_SPEED 1007 21 | const IDC_PLAY_REP = 1006; 22 | 23 | const IDC_PLAY_SPEED = 1007; 24 | // Next default values for new objects 25 | // 26 | //C #ifdef APSTUDIO_INVOKED 27 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 28 | //C #define _APS_NEXT_RESOURCE_VALUE 102 29 | //C #define _APS_NEXT_COMMAND_VALUE 40001 30 | //C #define _APS_NEXT_CONTROL_VALUE 1008 31 | //C #define _APS_NEXT_SYMED_VALUE 101 32 | //C #endif 33 | //C #endif 34 | -------------------------------------------------------------------------------- /Samples/Chap22/todo/Record1/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by Record.rc 4 | // 5 | #define IDC_RECORD_BEG 1000 6 | #define IDC_RECORD_END 1001 7 | #define IDC_PLAY_BEG 1002 8 | #define IDC_PLAY_PAUSE 1003 9 | #define IDC_PLAY_END 1004 10 | #define IDC_PLAY_REV 1005 11 | #define IDC_PLAY_REP 1006 12 | #define IDC_PLAY_SPEED 1007 13 | 14 | // Next default values for new objects 15 | // 16 | #ifdef APSTUDIO_INVOKED 17 | #ifndef APSTUDIO_READONLY_SYMBOLS 18 | #define _APS_NEXT_RESOURCE_VALUE 102 19 | #define _APS_NEXT_COMMAND_VALUE 40001 20 | #define _APS_NEXT_CONTROL_VALUE 1008 21 | #define _APS_NEXT_SYMED_VALUE 101 22 | #endif 23 | #endif 24 | -------------------------------------------------------------------------------- /Samples/Chap23/NetTime/NetTime.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Chap23/NetTime/NetTime.res -------------------------------------------------------------------------------- /Samples/Chap23/NetTime/resource.d: -------------------------------------------------------------------------------- 1 | /* Converted to D from D:\dev\projects\DWindowsProgramming\Samples\Chap23\NetTime\resource.h by htod */ 2 | module resource; 3 | //{{NO_DEPENDENCIES}} 4 | // Microsoft Developer Studio generated include file. 5 | // Used by NetTime.rc 6 | // 7 | //C #define IDC_TEXTOUT 101 8 | //C #define IDC_SERVER1 1001 9 | const IDC_TEXTOUT = 101; 10 | //C #define IDC_SERVER2 1002 11 | const IDC_SERVER1 = 1001; 12 | //C #define IDC_SERVER3 1003 13 | const IDC_SERVER2 = 1002; 14 | //C #define IDC_SERVER4 1004 15 | const IDC_SERVER3 = 1003; 16 | //C #define IDC_SERVER5 1005 17 | const IDC_SERVER4 = 1004; 18 | //C #define IDC_SERVER6 1006 19 | const IDC_SERVER5 = 1005; 20 | //C #define IDC_SERVER7 1007 21 | const IDC_SERVER6 = 1006; 22 | //C #define IDC_SERVER8 1008 23 | const IDC_SERVER7 = 1007; 24 | //C #define IDC_SERVER9 1009 25 | const IDC_SERVER8 = 1008; 26 | //C #define IDC_SERVER10 1010 27 | const IDC_SERVER9 = 1009; 28 | //C #define IDC_SERVER 1011 29 | const IDC_SERVER10 = 1010; 30 | //C #define IDC_CLOSE 1012 31 | const IDC_SERVER = 1011; 32 | 33 | const IDC_CLOSE = 1012; 34 | // Next default values for new objects 35 | // 36 | //C #ifdef APSTUDIO_INVOKED 37 | //C #ifndef APSTUDIO_READONLY_SYMBOLS 38 | //C #define _APS_NEXT_RESOURCE_VALUE 104 39 | //C #define _APS_NEXT_COMMAND_VALUE 40001 40 | //C #define _APS_NEXT_CONTROL_VALUE 1013 41 | //C #define _APS_NEXT_SYMED_VALUE 101 42 | //C #endif 43 | //C #endif 44 | -------------------------------------------------------------------------------- /Samples/Chap23/NetTime/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by NetTime.rc 4 | // 5 | #define IDC_TEXTOUT 101 6 | #define IDC_SERVER1 1001 7 | #define IDC_SERVER2 1002 8 | #define IDC_SERVER3 1003 9 | #define IDC_SERVER4 1004 10 | #define IDC_SERVER5 1005 11 | #define IDC_SERVER6 1006 12 | #define IDC_SERVER7 1007 13 | #define IDC_SERVER8 1008 14 | #define IDC_SERVER9 1009 15 | #define IDC_SERVER10 1010 16 | #define IDC_SERVER 1011 17 | #define IDC_CLOSE 1012 18 | 19 | // Next default values for new objects 20 | // 21 | #ifdef APSTUDIO_INVOKED 22 | #ifndef APSTUDIO_READONLY_SYMBOLS 23 | #define _APS_NEXT_RESOURCE_VALUE 104 24 | #define _APS_NEXT_COMMAND_VALUE 40001 25 | #define _APS_NEXT_CONTROL_VALUE 1013 26 | #define _APS_NEXT_SYMED_VALUE 101 27 | #endif 28 | #endif 29 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/SciTEDirectory.properties: -------------------------------------------------------------------------------- 1 | command.go.subsystem.*.d=0 2 | command.go.*.d=$(SciteDirectoryHome)\build.bat $(FileName) $(FilePath) 3 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal EnableDelayedExpansion 3 | 4 | set thisPath=%~dp0 5 | set binPath=%thisPath%\bin 6 | cd %thisPath% 7 | 8 | set import_libs=comctl32.lib ole32.lib 9 | 10 | if [%1]==[] goto :error 11 | if [%2]==[] goto :error 12 | goto :next 13 | 14 | :error 15 | echo Error: Must pass project name and source name as arguments. 16 | goto :eof 17 | 18 | :next 19 | 20 | set FileName=%1 21 | set SourceFile=%2 22 | 23 | rdmd -m32omf -g -w -L/SUBSYSTEM:WINDOWS:5.01 %versions% -Ilib %import_libs% -of%binPath%\%FileName%.exe %SourceFile% 24 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_source/SciTEDirectory.properties: -------------------------------------------------------------------------------- 1 | command.go.subsystem.*.d=0 2 | command.go.*.d=$(SciteDirectoryHome)\build.bat $(FileName) $(FilePath) 3 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_source/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal EnableDelayedExpansion 3 | 4 | set thisPath=%~dp0 5 | set binPath=%thisPath%\bin 6 | cd %thisPath%.. 7 | 8 | set import_libs=comctl32.lib ole32.lib gdi32.lib 9 | set subsystem=-L/SUBSYSTEM:WINDOWS:5.01 10 | 11 | if [%1]==[] goto :error 12 | if [%2]==[] goto :error 13 | goto :next 14 | 15 | :error 16 | echo Error: Must pass project name and source name as arguments. 17 | goto :eof 18 | 19 | :next 20 | 21 | set FileName=%1 22 | set SourceFile=%2 23 | 24 | rdmd -g -w %subsystem% %versions% -Ilib %import_libs% -of%binPath%\%FileName%.exe drop_source\resource.res %SourceFile% 25 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_source/make_resource.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set rc="C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\RC.exe" 3 | %rc% /i"C:\Program Files\Microsoft SDKs\Windows\v7.1\Include" /i"C:\Program Files\Microsoft Visual Studio 10.0\VC\include" /i"C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include" resource.rc 4 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_source/resource.d: -------------------------------------------------------------------------------- 1 | module drop_source.resource; 2 | 3 | enum IDR_MENU1 = 101; 4 | enum IDM_FILE_ABOUT = 40001; 5 | enum IDM_FILE_EXIT = 40002; 6 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_source/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by resource.rc 4 | // 5 | #define IDR_MENU1 101 6 | #define IDM_FILE_ABOUT 40001 7 | #define IDM_FILE_EXIT 40002 8 | 9 | // Next default values for new objects 10 | // 11 | #ifdef APSTUDIO_INVOKED 12 | #ifndef APSTUDIO_READONLY_SYMBOLS 13 | #define _APS_NEXT_RESOURCE_VALUE 102 14 | #define _APS_NEXT_COMMAND_VALUE 40003 15 | #define _APS_NEXT_CONTROL_VALUE 1000 16 | #define _APS_NEXT_SYMED_VALUE 101 17 | #endif 18 | #endif 19 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_source/resource.rc: -------------------------------------------------------------------------------- 1 | #include "resource.h" 2 | 3 | IDR_MENU1 MENU DISCARDABLE 4 | BEGIN 5 | POPUP "&File" 6 | BEGIN 7 | MENUITEM "&About", IDM_FILE_ABOUT 8 | MENUITEM "E&xit", IDM_FILE_EXIT 9 | END 10 | END 11 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_source/resource.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Extra/DragDrop/drop_source/resource.res -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_source/source.d: -------------------------------------------------------------------------------- 1 | module drop_source.source; 2 | 3 | import std.algorithm; 4 | import std.range; 5 | import std.string; 6 | 7 | import core.sys.windows.objidl; 8 | import core.sys.windows.ole2; 9 | import core.sys.windows.winbase; 10 | import core.sys.windows.windef; 11 | import core.sys.windows.winuser; 12 | import core.sys.windows.wtypes; 13 | 14 | import utils.com; 15 | 16 | class CDropSource : ComObject, IDropSource 17 | { 18 | extern (Windows) 19 | override HRESULT QueryInterface(GUID* riid, void** ppv) 20 | { 21 | if (*riid == IID_IDropSource) 22 | { 23 | *ppv = cast(void*)cast(IUnknown)this; 24 | AddRef(); 25 | return S_OK; 26 | } 27 | 28 | return super.QueryInterface(riid, ppv); 29 | } 30 | 31 | /** Called by OLE whenever Escape/Control/Shift/Mouse buttons have changed. */ 32 | extern (Windows) 33 | HRESULT QueryContinueDrag(BOOL fEscapePressed, DWORD grfKeyState) 34 | { 35 | // if the key has been pressed since the last call, cancel the drop 36 | if (fEscapePressed == TRUE) 37 | return DRAGDROP_S_CANCEL; 38 | 39 | // if the button has been released, then do the drop! 40 | if ((grfKeyState & MK_LBUTTON) == 0) 41 | return DRAGDROP_S_DROP; 42 | 43 | // continue with the drag-drop 44 | return S_OK; 45 | } 46 | 47 | // Return either S_OK or DRAGDROP_S_USEDEFAULTCURSORS to instruct OLE to use the 48 | // default mouse cursor images 49 | extern (Windows) 50 | HRESULT GiveFeedback(DWORD dwEffect) 51 | { 52 | return DRAGDROP_S_USEDEFAULTCURSORS; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_target/SciTEDirectory.properties: -------------------------------------------------------------------------------- 1 | command.go.subsystem.*.d=0 2 | command.go.*.d=$(SciteDirectoryHome)\build.bat $(FileName) $(FilePath) 3 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_target/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal EnableDelayedExpansion 3 | 4 | set thisPath=%~dp0 5 | set binPath=%thisPath%\bin 6 | cd %thisPath%.. 7 | 8 | set import_libs=comctl32.lib ole32.lib gdi32.lib 9 | set subsystem=-L/SUBSYSTEM:WINDOWS:5.01 10 | 11 | if [%1]==[] goto :error 12 | if [%2]==[] goto :error 13 | goto :next 14 | 15 | :error 16 | echo Error: Must pass project name and source name as arguments. 17 | goto :eof 18 | 19 | :next 20 | 21 | set FileName=%1 22 | set SourceFile=%2 23 | 24 | rdmd -g -w %subsystem% %versions% -Ilib %import_libs% -of%binPath%\%FileName%.exe drop_source\resource.res %SourceFile% 25 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_target/make_resource.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set rc="C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\RC.exe" 3 | %rc% /i"C:\Program Files\Microsoft SDKs\Windows\v7.1\Include" /i"C:\Program Files\Microsoft Visual Studio 10.0\VC\include" /i"C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include" resource.rc 4 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_target/resource.d: -------------------------------------------------------------------------------- 1 | module drop_target.resource; 2 | 3 | enum IDR_MENU1 = 101; 4 | enum IDM_FILE_ABOUT = 40001; 5 | enum IDM_FILE_EXIT = 40002; 6 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_target/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by resource.rc 4 | // 5 | #define IDR_MENU1 101 6 | #define IDM_FILE_ABOUT 40001 7 | #define IDM_FILE_EXIT 40002 8 | 9 | // Next default values for new objects 10 | // 11 | #ifdef APSTUDIO_INVOKED 12 | #ifndef APSTUDIO_READONLY_SYMBOLS 13 | #define _APS_NEXT_RESOURCE_VALUE 102 14 | #define _APS_NEXT_COMMAND_VALUE 40003 15 | #define _APS_NEXT_CONTROL_VALUE 1000 16 | #define _APS_NEXT_SYMED_VALUE 101 17 | #endif 18 | #endif 19 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_target/resource.rc: -------------------------------------------------------------------------------- 1 | #include "resource.h" 2 | 3 | IDR_MENU1 MENU DISCARDABLE 4 | BEGIN 5 | POPUP "&File" 6 | BEGIN 7 | MENUITEM "&About", IDM_FILE_ABOUT 8 | MENUITEM "E&xit", IDM_FILE_EXIT 9 | END 10 | END 11 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/drop_target/resource.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Extra/DragDrop/drop_target/resource.res -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/lib/win32/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Extra/DragDrop/lib/win32/.gitignore -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/list_clipboard/SciTEDirectory.properties: -------------------------------------------------------------------------------- 1 | command.go.subsystem.*.d=0 2 | command.go.*.d=$(SciteDirectoryHome)\build.bat $(FileName) $(FilePath) 3 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/list_clipboard/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal EnableDelayedExpansion 3 | 4 | set thisPath=%~dp0 5 | set binPath=%thisPath%\bin 6 | cd %thisPath%.. 7 | 8 | set import_libs=comctl32.lib ole32.lib 9 | set subsystem=-L/SUBSYSTEM:WINDOWS:5.01 10 | 11 | if [%1]==[] goto :error 12 | if [%2]==[] goto :error 13 | goto :next 14 | 15 | :error 16 | echo Error: Must pass project name and source name as arguments. 17 | goto :eof 18 | 19 | :next 20 | 21 | set FileName=%1 22 | set SourceFile=%2 23 | 24 | rdmd -g -w %subsystem% %versions% -Ilib %import_libs% -of%binPath%\%FileName%.exe list_clipboard\dataobjview.res %SourceFile% 25 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/list_clipboard/dataobjview.rc: -------------------------------------------------------------------------------- 1 | #include "resource.h" 2 | 3 | #define IDC_STATIC (-1) 4 | 5 | IDR_MENU1 MENU DISCARDABLE 6 | BEGIN 7 | POPUP "&File" 8 | BEGIN 9 | MENUITEM "View &Clipboard DataObject", IDM_FILE_CLIP 10 | MENUITEM "&About", IDM_FILE_ABOUT 11 | MENUITEM SEPARATOR 12 | MENUITEM "E&xit", IDM_FILE_EXIT 13 | END 14 | END 15 | 16 | IDI_ICON1 ICON DISCARDABLE "icon1.ico" 17 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/list_clipboard/dataobjview.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Extra/DragDrop/list_clipboard/dataobjview.res -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/list_clipboard/icon1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Extra/DragDrop/list_clipboard/icon1.ico -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/list_clipboard/make_resource.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set rc="C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\RC.exe" 3 | %rc% /i"C:\Program Files\Microsoft SDKs\Windows\v7.1\Include" /i"C:\Program Files\Microsoft Visual Studio 10.0\VC\include" /i"C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include" dataobjview.rc 4 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/list_clipboard/resource.d: -------------------------------------------------------------------------------- 1 | module list_clipboard.resource; 2 | 3 | enum IDR_MENU1 = 101; 4 | enum IDI_ICON1 = 102; 5 | enum IDM_FILE_EXIT = 40001; 6 | enum IDM_FILE_CLIP = 40002; 7 | enum IDM_FILE_ABOUT = 40003; 8 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/list_clipboard/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by dataobjview.rc 4 | // 5 | #define IDR_MENU1 101 6 | #define IDI_ICON1 102 7 | #define IDM_FILE_EXIT 40001 8 | #define IDM_FILE_CLIP 40002 9 | #define IDM_FILE_ABOUT 40003 10 | 11 | // Next default values for new objects 12 | // 13 | #ifdef APSTUDIO_INVOKED 14 | #ifndef APSTUDIO_READONLY_SYMBOLS 15 | #define _APS_NEXT_RESOURCE_VALUE 105 16 | #define _APS_NEXT_COMMAND_VALUE 40004 17 | #define _APS_NEXT_CONTROL_VALUE 1000 18 | #define _APS_NEXT_SYMED_VALUE 101 19 | #endif 20 | #endif 21 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/readme.md: -------------------------------------------------------------------------------- 1 | ## Building 2 | 3 | You might need an updated WindowsAPI binding to use these. 4 | Put its win32 folder in the lib folder and then compile by 5 | running e.g.: 6 | 7 | ``` 8 | build.bat DropSource drop_source\main.d 9 | ``` 10 | 11 | You don't have to run the make_resource.bat scripts since 12 | prebuilt .rc files are distributed. 13 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/save_clipboard/main.d: -------------------------------------------------------------------------------- 1 | module save_clipboard.main; 2 | 3 | /** 4 | The project stores text data to the the OS clipboard using 5 | COM classes and functions. 6 | */ 7 | 8 | import std.conv; 9 | import std.exception; 10 | import std.stdio; 11 | 12 | pragma(lib, "comctl32.lib"); 13 | pragma(lib, "ole32.lib"); 14 | 15 | import core.sys.windows.objidl; 16 | import core.sys.windows.ole2; 17 | import core.sys.windows.winbase; 18 | import core.sys.windows.windef; 19 | import core.sys.windows.winuser; 20 | import core.sys.windows.wtypes; 21 | 22 | import utils.com; 23 | import save_clipboard.data_object; 24 | 25 | void main() 26 | { 27 | enforce(OleInitialize(null) == S_OK); 28 | scope(exit) OleUninitialize(); 29 | saveClipboard(); 30 | } 31 | 32 | /** Save contents to the clipboard. */ 33 | void saveClipboard() 34 | { 35 | auto fs = getTextFormatStore(); 36 | fs.stgmedium.hGlobal = toGlobalMem("Hello, World!"); 37 | scope(exit) ReleaseStgMedium(&fs.stgmedium); 38 | 39 | IDataObject pDataObject = newCom!DataObject(fs); 40 | scope(exit) pDataObject.Release(); 41 | 42 | OleSetClipboard(pDataObject); 43 | OleFlushClipboard(); 44 | } 45 | 46 | /** Get the format and storage medium for a text type. */ 47 | FormatStore getTextFormatStore() 48 | { 49 | FormatStore store; 50 | store.formatetc = FORMATETC(CF_TEXT, null, DVASPECT.DVASPECT_CONTENT, -1, TYMED.TYMED_HGLOBAL); 51 | store.stgmedium = STGMEDIUM(TYMED.TYMED_HGLOBAL); 52 | return store; 53 | } 54 | -------------------------------------------------------------------------------- /Samples/Extra/DragDrop/show_clipboard/main.d: -------------------------------------------------------------------------------- 1 | module show_clipboard; 2 | 3 | /** 4 | The self-contained module queries the OS clipboard using COM 5 | functions, and then prints out the contents if the clipboard 6 | holds any text data. 7 | */ 8 | 9 | import std.conv; 10 | import std.exception; 11 | import std.stdio; 12 | 13 | pragma(lib, "comctl32.lib"); 14 | pragma(lib, "ole32.lib"); 15 | 16 | import core.sys.windows.objidl; 17 | import core.sys.windows.ole2; 18 | import core.sys.windows.winbase; 19 | import core.sys.windows.windef; 20 | import core.sys.windows.winuser; 21 | import core.sys.windows.wtypes; 22 | 23 | void main() 24 | { 25 | enforce(OleInitialize(null) == S_OK); 26 | scope(exit) OleUninitialize(); 27 | showClipboard(); 28 | } 29 | 30 | /** Print clipboard contents to stderr. */ 31 | void showClipboard() 32 | { 33 | /** 34 | Clipboard and Drag & Drop both use an IDataObject, 35 | so the reading code can remain simple. 36 | */ 37 | IDataObject pDataObject; 38 | enforce(OleGetClipboard(&pDataObject) == S_OK); 39 | scope(exit) pDataObject.Release; 40 | 41 | /** The format we're querying about. */ 42 | FORMATETC fmtetc = { CF_TEXT, null, DVASPECT.DVASPECT_CONTENT, -1, TYMED.TYMED_HGLOBAL }; 43 | STGMEDIUM stgmed; 44 | 45 | /** Query if the data object has CF_TEXT data, stored as an HGLOBAL. */ 46 | if (pDataObject.GetData(&fmtetc, &stgmed) == S_OK) 47 | { 48 | scope(exit) ReleaseStgMedium(&stgmed); 49 | 50 | // We need to lock the HGLOBAL handle because we can't 51 | // be sure if this is GMEM_FIXED (i.e. normal heap) data or not 52 | char* data = cast(char*)GlobalLock(stgmed.hGlobal); 53 | scope(exit) GlobalUnlock(stgmed.hGlobal); 54 | 55 | stderr.writefln("Clipboard contents:\n%s", data.to!string); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Samples/Extra/HookSample1/SciTEDirectory.properties: -------------------------------------------------------------------------------- 1 | command.go.subsystem.*.d=0 2 | command.go.*.d=build.bat 3 | -------------------------------------------------------------------------------- /Samples/Extra/HookSample1/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rdmd resource.res -d -version=Unicode -version=WindowsXP -IC:\dev\projects\DWinProgramming\WindowsAPI HookSample1.d 3 | -------------------------------------------------------------------------------- /Samples/Extra/HookSample1/resource.h: -------------------------------------------------------------------------------- 1 | #ifndef IDC_STATIC 2 | #define IDC_STATIC (-1) 3 | #endif 4 | 5 | //{{NO_DEPENDENCIES}} 6 | // Microsoft Developer Studio generated include file. 7 | // Used by MenuDemo.rc 8 | // 9 | #define IDM_FILE_NEW 40001 10 | #define IDM_FILE_OPEN 40002 11 | #define IDM_FILE_SAVE 40003 12 | #define IDM_FILE_SAVE_AS 40004 13 | #define IDM_APP_EXIT 40005 14 | #define IDM_EDIT_UNDO 40006 15 | #define IDM_EDIT_CUT 40007 16 | #define IDM_EDIT_COPY 40008 17 | #define IDM_EDIT_PASTE 40009 18 | #define IDM_EDIT_CLEAR 40010 19 | #define IDM_BKGND_WHITE 40011 20 | #define IDM_BKGND_LTGRAY 40012 21 | #define IDM_BKGND_GRAY 40013 22 | #define IDM_BKGND_DKGRAY 40014 23 | #define IDM_BKGND_BLACK 40015 24 | #define IDM_TIMER_START 40016 25 | #define IDM_TIMER_STOP 40017 26 | #define IDM_APP_HELP 40018 27 | #define IDM_APP_ABOUT 40019 28 | #define ID_MENUITEM40020 40020 29 | 30 | #define IDM_CALLWNDPROC 0 31 | #define IDM_CBT 1 32 | #define IDM_DEBUG 2 33 | #define IDM_GETMESSAGE 3 34 | #define IDM_KEYBOARD 4 35 | #define IDM_MOUSE 5 36 | #define IDM_MSGFILTER 6 37 | 38 | // Next default values for new objects 39 | // 40 | #ifdef APSTUDIO_INVOKED 41 | #ifndef APSTUDIO_READONLY_SYMBOLS 42 | #define _APS_NEXT_RESOURCE_VALUE 102 43 | #define _APS_NEXT_COMMAND_VALUE 40021 44 | #define _APS_NEXT_CONTROL_VALUE 1000 45 | #define _APS_NEXT_SYMED_VALUE 101 46 | #endif 47 | #endif 48 | -------------------------------------------------------------------------------- /Samples/Extra/HookSample1/resource.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Extra/HookSample1/resource.res -------------------------------------------------------------------------------- /Samples/Extra/HookSample2/SciTEDirectory.properties: -------------------------------------------------------------------------------- 1 | command.go.subsystem.*.d=0 2 | command.go.*.d=build.bat 3 | -------------------------------------------------------------------------------- /Samples/Extra/HookSample2/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rdmd resource.res -d -version=Unicode -version=WindowsXP -IC:\dev\projects\DWinProgramming\WindowsAPI HookSample2.d 3 | -------------------------------------------------------------------------------- /Samples/Extra/HookSample2/resource.h: -------------------------------------------------------------------------------- 1 | #ifndef IDC_STATIC 2 | #define IDC_STATIC (-1) 3 | #endif 4 | 5 | //{{NO_DEPENDENCIES}} 6 | // Microsoft Developer Studio generated include file. 7 | // Used by MenuDemo.rc 8 | // 9 | #define IDM_FILE_NEW 40001 10 | #define IDM_FILE_OPEN 40002 11 | #define IDM_FILE_SAVE 40003 12 | #define IDM_FILE_SAVE_AS 40004 13 | #define IDM_APP_EXIT 40005 14 | #define IDM_EDIT_UNDO 40006 15 | #define IDM_EDIT_CUT 40007 16 | #define IDM_EDIT_COPY 40008 17 | #define IDM_EDIT_PASTE 40009 18 | #define IDM_EDIT_CLEAR 40010 19 | #define IDM_BKGND_WHITE 40011 20 | #define IDM_BKGND_LTGRAY 40012 21 | #define IDM_BKGND_GRAY 40013 22 | #define IDM_BKGND_DKGRAY 40014 23 | #define IDM_BKGND_BLACK 40015 24 | #define IDM_TIMER_START 40016 25 | #define IDM_TIMER_STOP 40017 26 | #define IDM_APP_HELP 40018 27 | #define IDM_APP_ABOUT 40019 28 | #define ID_MENUITEM40020 40020 29 | 30 | #define IDM_CALLWNDPROC 0 31 | #define IDM_CBT 1 32 | #define IDM_DEBUG 2 33 | #define IDM_GETMESSAGE 3 34 | #define IDM_KEYBOARD 4 35 | #define IDM_MOUSE 5 36 | #define IDM_MSGFILTER 6 37 | 38 | // Next default values for new objects 39 | // 40 | #ifdef APSTUDIO_INVOKED 41 | #ifndef APSTUDIO_READONLY_SYMBOLS 42 | #define _APS_NEXT_RESOURCE_VALUE 102 43 | #define _APS_NEXT_COMMAND_VALUE 40021 44 | #define _APS_NEXT_CONTROL_VALUE 1000 45 | #define _APS_NEXT_SYMED_VALUE 101 46 | #endif 47 | #endif 48 | -------------------------------------------------------------------------------- /Samples/Extra/HookSample2/resource.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Extra/HookSample2/resource.res -------------------------------------------------------------------------------- /Samples/Extra/Pipes/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | dmd Pipes.d -version=Unicode -version=WindowsXP -ID:\dev\projects\DWinProgramming\ D:\dev\projects\DWinProgramming\win32.lib && Pipes.exe 3 | -------------------------------------------------------------------------------- /Samples/Extra/Pipes/empty.txt: -------------------------------------------------------------------------------- 1 | empty 2 | -------------------------------------------------------------------------------- /Samples/Extra/RedirectChildHandle/empty.txt: -------------------------------------------------------------------------------- 1 | empty 2 | -------------------------------------------------------------------------------- /Samples/Extra/RedirectChildHandleThreaded/empty.txt: -------------------------------------------------------------------------------- 1 | empty 2 | -------------------------------------------------------------------------------- /Samples/Extra/ThemedSimpleWakeUp/enable-theme.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Samples/Extra/ThemedSimpleWakeUp/resource.rc: -------------------------------------------------------------------------------- 1 | #define RT_MANIFEST 24 2 | 1 RT_MANIFEST "enable-theme.xml" 3 | -------------------------------------------------------------------------------- /Samples/Extra/ThemedSimpleWakeUp/resource.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Extra/ThemedSimpleWakeUp/resource.res -------------------------------------------------------------------------------- /Samples/Extra/VisualStyles/enable-theme.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Samples/Extra/VisualStyles/resource.rc: -------------------------------------------------------------------------------- 1 | #define RT_MANIFEST 24 2 | 1 RT_MANIFEST "enable-theme.xml" 3 | -------------------------------------------------------------------------------- /Samples/Extra/VisualStyles/resource.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Extra/VisualStyles/resource.res -------------------------------------------------------------------------------- /Samples/Extra/VisualStyles2/enable-theme.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Samples/Extra/VisualStyles2/resource.rc: -------------------------------------------------------------------------------- 1 | #define RT_MANIFEST 24 2 | 1 RT_MANIFEST "enable-theme.xml" 3 | -------------------------------------------------------------------------------- /Samples/Extra/VisualStyles2/resource.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Samples/Extra/VisualStyles2/resource.res -------------------------------------------------------------------------------- /Uxtheme.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/Uxtheme.lib -------------------------------------------------------------------------------- /dmd_win32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/dmd_win32.lib -------------------------------------------------------------------------------- /gdc_win32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/gdc_win32.lib -------------------------------------------------------------------------------- /gdi32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/gdi32.lib -------------------------------------------------------------------------------- /gdmd.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal EnableDelayedExpansion 3 | set "gdc_dir=" 4 | FOR /F "tokens=*" %%i in ('where gdc') do SET gdc_dir=%%~dpi 5 | call :strip %gdc_dir% 6 | set "gdc_script=%gdc_dir%gdmd" 7 | perl.exe -X %gdc_script% %* 8 | goto :eof 9 | 10 | :strip 11 | set gdc_dir=%* 12 | goto :eof 13 | -------------------------------------------------------------------------------- /libcomctl32.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/libcomctl32.a -------------------------------------------------------------------------------- /libgdi32.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/libgdi32.a -------------------------------------------------------------------------------- /libuxtheme.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/libuxtheme.a -------------------------------------------------------------------------------- /libwinmm.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/libwinmm.a -------------------------------------------------------------------------------- /libwinspool.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/libwinspool.a -------------------------------------------------------------------------------- /libws2_32.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/libws2_32.a -------------------------------------------------------------------------------- /make_build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal EnableDelayedExpansion 3 | FOR /F "tokens=*" %%i in ('where gdc') do SET gdc=true 4 | FOR /F "tokens=*" %%i in ('where dmd') do SET dmd=true 5 | 6 | if defined gdc ( 7 | set "compile=gdmd -IWindowsAPI -m32 -version=Unicode -version=WindowsXP build.d gdc_win32.lib -ofbuild.exe" 8 | ) 9 | 10 | if defined dmd ( 11 | set "compile=dmd -IWindowsAPI -m32 -version=Unicode -version=WindowsXP build.d dmd_win32.lib -ofbuild.exe" 12 | ) 13 | 14 | %compile% 15 | -------------------------------------------------------------------------------- /uxthemed.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrejMitrovic/DWinProgramming/8528cc7984444f992182a20024191c879e1dede5/uxthemed.lib --------------------------------------------------------------------------------