How qbj196/photoviewer works
PhotoViewer is a Windows desktop image viewer. Users open an image by launching with a file path, using the open command, or dropping a file; the viewer loads it, presents it in a navigable image sequence, and supports viewing controls and file actions. The sampled code shows window creation, control dispatch, painting, and WIC decoding. The decoder call from the view is not visible in the excerpts, so that link is marked unverified; Resource.h is listed as a core module but was not sampled.
Main entry points: ViewWnd.cpp View and navigation · MainWnd.cpp Main window · CtrlWnd.cpp Control window · Decoder.cpp Image decoding
Components 12
Window shell
- Main window
MainWnd.cpp - Control window
CtrlWnd.cpp - Resource identifiers
Resource.h
Image viewing
- View and navigation
ViewWnd.cpp - Image sequence
ViewWnd.cpp - Image decoding
Decoder.cpp
Viewer actions
- Windows shell services
- Desktop wallpaper
- Clipboard
Other components
- User
- Windows Imaging
- Windows display
Connections 13
- User → Main window: opens or drops
MainWnd.cpp - Main window → Control window: creates
MainWnd.cpp - Main window → View and navigation: creates
MainWnd.cpp - Main window → View and navigation: forwards file
MainWnd.cpp - Main window → View and navigation: forwards input
MainWnd.cpp - Control window → View and navigation: posts commands
CtrlWnd.cpp - View and navigation → Image sequence: navigates files
ViewWnd.cpp - View and navigation → Image decoding: loads image
- Image decoding → Windows Imaging: decodes with
Decoder.cpp - View and navigation → Windows display: paints image
ViewWnd.cpp - View and navigation → Windows shell services: opens file location
ViewWnd.cpp - View and navigation → Desktop wallpaper: sets wallpaper
ViewWnd.cpp - View and navigation → Clipboard: copies path or file
ViewWnd.cpp