*.inl files contain the definitions of inline member functions.
inlsplit turns a .inl file into the corresponding .cc and .h files, placing an include guard (#ifndef _HEADER_H...#endif) around the .h file. It can also optionally generate preprocessor directives in the output files to tell the C++ compiler what line it is on in the .inl file (for error messages).
Analyzing the source of CxImage library (ximawnd.cpp), it seems the HDC value is used to format and draw the text on a temporary in-memory bitmap, and then the image is copied from this bitmap to CxImage object.
It does not look much optimized for speed, and maybe you will have time to investigate some other approaches, like creating your own HBITMAP object, drawing on it, and then saving it to a file, for example using CImage class from ATL/MFC?
I am writing an application that generates documents and I wqould like to open them in Microsoft Word automatically. Does anyone have an idea how to launch Word with the relevant document from within my application?