Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Richard_48

@Richard_48
About
Posts
12
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Vista won't have a backdoor
    R Richard_48

    ok Richard

    The Lounge c++ com question

  • Deploying a VC++ application on a target machine
    R Richard_48

    When you created the program, did you select in application wizard, "Use in a shared dll", or "Use in a static library"? Windows shares many .dll files and if you chose a static library, Windows may not be able to access the program you are trying to deploy because the program is telling Windows that it has it's own dll's. Are you trying to deploy to computers with different operating systems, or are they the same? If they are different, you may need to find out what .dll's are needed for the program to work. I know that is not much help, but it's all I can think of. :) Richard

    C / C++ / MFC help c++ question announcement workspace

  • Text Justification
    R Richard_48

    I am trying to fully justify text in CRichEditView. (MFC)When I compile and test the program, the text selected seems to default to left justification not full interword. I have RichEdit 4.1 installed, running windows xp pro, with all critical updates installed. If PFA_LEFT, PFA_RIGHT, AND PFA_CENTER work with pf.wAlignment, why won't PFA_FULL_INTERWORD? This is supported in RichEdit 4.1, and even in 3.0, but for some reason when the function is called below, Left justification is the only response. Maybe I shoud contact Microsoft? Any suggestions? Thank you so much if you can help. :-D GetParaFormatSelection(); PARAFORMAT2 pf; pf.dwMask = PFM_ALIGNMENT; pf.wAlignment = PFA_FULL_INTERWORD; VERIFY(SetParaFormat(pf)); Richard

    C / C++ / MFC c++ help question

  • Top margin in CEditView
    R Richard_48

    sorry. I ment msdn.com not mdn.com also, if you ar running v.s. 6.0 PARAFORMAT may be the structure to use... RRL

    C / C++ / MFC tutorial question

  • Top margin in CEditView
    R Richard_48

    In the PARAFORMAT2 Structure there is a member called dySpaceBefore. You will need to build a function to call this member using the dwMask member. The value must always be > than or = 0. The Size of the spacing is in twips. You may be able to set up something similar in the PARAFORMAT structure if you are using later versions of Visual C++. Go to MDN.COM and do a search for PARAFORMAT OR PARAFORMAT2. I think there is an example there somewhere..?? regards, RRL

    C / C++ / MFC tutorial question

  • PARAFORMAT2 Structure
    R Richard_48

    Hello all, Here is my code: void CMSMCitationView::OnMsmformattingJustifytext() { //Call the PARAFORMAT2 Structure to mod the paragraph // format PARAFORMAT2 pf; // Modify the paragraph format so that the text //is justified. pf.cbSize = sizeof(PARAFORMAT2); pf.dwMask = PFM_ALIGNMENT; pf.wAlignment = PFA_JUSTIFY; CRichEditView::SetParaFormat(pf); // Verify the settings. #ifdef _DEBUG CRichEditView::GetParaFormatSelection(); ASSERT(pf.dwMask&PFM_ALIGNMENT); ASSERT(pf.wAlignment == PFA_JUSTIFY); #endif } Here is more info about this: Code compiles and links. When Menu Item (Justify Text) is selected, nothing happens. When other values are used in place of PFA_JUSTIFY, such as PFA_CENTER, center text is the result. Documentation says that if Rich Edit 3.0 is not installed, value PFA_JUSTIFY will align with the left margin. This is my result with PFA_JUSTIFY. I am running Win XP Pro with all the updates installed. Should have at least Rich Edit 3.0.dll already installed. Question is why won't PFA_JUSTIFY do it's thing? How do I determine if at least the RichEdit 3.0.dll is installed? Thanks for your inputs, Sveige :) RRL

    C / C++ / MFC question

  • Full Text Justification
    R Richard_48

    Has anyone seen code for a richTextBox that will fully justify text? Right, Left, and Center are no problem, but for some reason code for fully justifying text in a richTextBox is no where. Is it not a part of the .net framework? Sure there is MFC and Windows GDI, but no examples in MSDN. There is large amounts of information on this subject in Visual Basic and if you are coding an HTML, but nothing while programming in Windows Forms. Thanks if anyone has anything to get me started. Regards, :~ RRL

    C / C++ / MFC csharp c++ html dotnet

  • Windows forms and the text box
    R Richard_48

    While working with windows forms, in Visual C++.net there are three options for TextAlign for a TextBox: Right, Left, Center. What about justified or blocked style text for the multi line option? Is it somewhere in the TextBox Base class? If not, I could code my own, but was wondering if it was already out there somewhere. Seems there is not much on the subject. Thanks, :cool: RRL

    C / C++ / MFC c++ csharp winforms question

  • MDI caret keyboard and mouse
    R Richard_48

    How do I get mouse keyboard and the blinking caret ready for user input, just like when you open up Microsoft Word? Trying to build a customized word processor and I am having trouble finding the basics. I already have an MDI built using the MFC Application Wizard. When I compile the program, the child window has no way to accept any input from the user in the document area. Do I need to add a richTextBox to the child window or what? Sorry for the dumb question but need some basic:confused: direction on how to do this in Visual C++.net Thanks so much... RRL

    C / C++ / MFC c++ question csharp tutorial

  • caret, mouse and keyboard
    R Richard_48

    I know how to create a mdi using AppWizard. So far I have not been able to find any information on how to get a simple word processor program up and running like wordpad or word that shows a caret and receives input with the mouse and keyboard from the user. I have read articles on understanding the document and view classes, but so far, nothing about the "nuts and bolts" of a basic word processor application. I don't want to draw lines or click the mouse to make boxes and use paint to paint pretty lines. Those are good for learning, but not practical for what I need. Can anyone point me in the right direction so I can get started on this project. Thanks so much!!!:doh: RRL

    C / C++ / MFC tutorial learning

  • Windows Forms, richTextBox1 and a print button
    R Richard_48

    :laugh:For some reason, I am not able to find any code (c++) on how to print from a Windows Form that has a richTextBox and a print button. Does any one point me in the right direction for some constructor code to input in the following: private: System::Void button4_Click(System::Object * sender, System::EventArgs * e) { } private: System::Void printDocument1_PrintPage(System::Object * sender, System::Drawing::Printing::PrintPageEventArgs * e) { } RRL

    C / C++ / MFC c++ winforms graphics tutorial

  • OnButton1
    R Richard_48

    Ok. I know this is really basic, but why can't I find the constructor code to open my documents from a button control? (MFC) I must be using wrong search key words, because I can't find it here. Can any one point me in the right direction? Thanks,:confused: RRL

    C / C++ / MFC c++ question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups