I am writing a program that print Windows files in TIFF format by selecting MS Office Document Writer as the printer, then calling ShellExecute() to start printing. The problem is that the Office Document Writer pop a "Save As" Dialog box before printing each time.
Does anyone know...
I am trying to automate the Microsoft Office Document Imaging software that ships with Office 2003, usinf MFC. I can not determine wich object library file I should refer to at the "Microsoft Office/OFFICE11/ " folder.
any help is greatly appreciated.
I have a CListView derived class that I use to display some data in report style. I want to alternate the background color of individual rows (white - gray) to make it easier to read. How can I do that?
I need to move text back and forth between a rich edit view and a CString variable. I am using the following callback functions:
DWORD __stdcall StreamInCallback(DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb)
{
CString *psBuffer = (CString *)dwCookie;
if (cb > psBuffer->GetLength())
cb...
how do I find whether or not the content of a rich edit view has been modified. I heard about EM_GETMODIFY for rich edit controls, but I am not sure how to go about it. thanks
I could not find the correct window class for rich edit 3, and I am afraid it may require too many changes at this stage in my program. but thanks for letting me know what's happening.
I have a rich edit view with menu options for center, left, and right justification of paragraphs. I need to add full justification (both left and right) but I can't find any support for that in MFC. Does anyone know how?
thanks.
I am trying to implement a context menu for a rich edit view that displays the Edit submenu of the main menu. I have heard about the IRichEditOleCallback::GetContextMenu()
method of CRichEditView, but I am not familiar with how to use it. does anyone know how?
thanks.
PerFnurt, I was talking about "changing" as "replacing".
Palbano, can you tell me how do I get get a pointer to the view I want to pass to your function, I usually deal with views through their runtime class and I don't know how to get a pointer. To show you what I mean, here...
I added a rich edit control on a dialog and I called AfxInitRichEdit(); in InitInstance().
the rich edit control shows up and accept text, but do not accept any OLE object. How can I get it to accept OLE?
thanks
I can't really do 1) because the text does'nt make anymore sense if it is clipped. my best option now is 2). but is there any way I can disable or remove the fonts and font sizes I don't want from the Choose Font Dialog Box?
I used the following code to implement a font menu in my program:
CFont m_font;
void CTestFormView::OnViewFont()
{
CFontDialog dlgChooseFont;
if(dlgChooseFont.DoModal() == IDOK)
{
m_font.DeleteObject();
m_font.CreateFontIndirect(
dlgChooseFont.m_cf.lpLogFont)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.