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
M

mcguile257

@mcguile257
About
Posts
21
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Saving password to registry?
    M mcguile257

    Hi, I a making an MFC app that needs to save the user's password and username to the registry. How do I go about "encrypting" it before I save it to the registry so no sneaks will look in the registry to see the user's password (for example, a brother or sister or whoever..). Thanks!

    C / C++ / MFC question c++ windows-admin tutorial

  • I want a programming job bad
    M mcguile257

    Hi, I currently have a web design job, but I have been programming in C/C++, MFC, etc for about 3-4 years and want to get a programming job eventually. I also have a degree in Computer Science which will probably help. I have a pretty good resume, a few MFC projects to show for demos, but is that enough to actually get a programming job? I was thinking about making another project to wow employers, but I am having trouble coming up with a project to work on. I've done a fully-featured HTML Editor, an FTP client, several game projects, etc. but I want to make a "killer-app" to show potetional hiring managers, programmers etc so I can get a job. Any advice?

    The Lounge c++ career html design game-dev

  • Using EasySize
    M mcguile257

    I am using Marc's EasySize.h for easy resizing of controls within a dialog-based application. I need help with getting the message map right for the following controls: 1) I have two list controls side-by-side that I want to resize proportionately to the resize. How do I code the message map for the easy size? EASYSIZE( control, left, top, right, bottom, options ) 2) Also in the dialog I have 5 buttons that are lined up on the bottom of the dialog centered horizontally. Can someone help me get the message map right for these controls as well? THANKS!

    C / C++ / MFC question help

  • SetWordCharFormat can be undone??
    M mcguile257

    I know of that, but what if before I call SetWordCharFormat the user has an operation that is undoable. If I called EmptyUndoBuffer, they would be unable to undo that operation they had "done" before I called SetWordCharFormat. There's got to be a solution :)

    C / C++ / MFC c++ question

  • SetWordCharFormat can be undone??
    M mcguile257

    In my MFC MDI app, when I call GetRichEditCtrl().SetWordCharFormat or GetRichEditCtrl().SetSelectionCharFormat to color a piece of text, and then press Ctrl+Z (or Edit->Undo), the formatting gets undone! Is there any way to tell the rich edit control not to allow this character formatting to be able to be undoable?

    C / C++ / MFC c++ question

  • HTML syntax highlighting concepts
    M mcguile257

    I am writing an HTML syntax highlighter for my MFC MDI app and I wrote a ParseAllLines function and it works perfectly for coloring the entire document. But I was wondering how to go about parsing/coloring as the user types into the rich edit control or pastes something into the document. Can anyone generally tell me what I need to do? Do I overwrite OnChange for the rich edit control? If so, what lines do I parse? I appreciate any advice, thank you!

    C / C++ / MFC c++ html json tutorial question

  • CRichEditCtrl -- current column?
    M mcguile257

    In my MDI MFC app, I have a status bar pane that shows the current line number and column number. I know that to get the current line number, I simply do: int lineNumber = LineFromChar( -1 ). But I am having trouble getting the current column, anyone know how to do this? It shouldn't be too bad.

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

  • adding gutters to rich edit controls?
    M mcguile257

    In my main rich edit view, I want to add a gutter to display line numbers. I am doing an MDI MFC app and have NOT found any way to do this. If anyone knows of any solutions to draw line numbers or add gutters to rich edit view/control, please reply! Thanks!

    C / C++ / MFC c++ question

  • Save Changes to... screwing up in WinXP
    M mcguile257

    In my MFC application, when the user makes changes to a document, and they try to close it, a dialog box pops up saying, "Save changes to BLAH.txt?". That's what happens in Win98. But when I run my app in XP, it comes up saying something crazy like: "blah.txt ??????????????????" or something. Note I am not implementing this dialog box, MFC is doing it behind the scenes. Also the buttons in Print Preview seem to be screwed up as well in XP apposed to the correct button text in Win98. What the hell?

    C / C++ / MFC c++ question

  • vertical scroll bar not working in MFC?
    M mcguile257

    I am working on an MDI MFC app and have been making great progress on it, but all of sudden, when I try to use my vertical scroll bar to scroll the rich edit view, it doesn't respond. Mind you, I can still use the mouse wheel to scroll up and down, but not directly by using the vertical scroll bar. It was working fine up until yesterday (been working on this project for roughly 2 months) when I must have changed something or adding something to the code that screwed it up, but for the life of me, can't figure out what. Please help! Any suggestions as to what to change or edit I would appreciate!

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

  • what files to distribute with my MFC app?
    M mcguile257

    OK I figured it out, thanks for all the help guys. The problem was part of my code, namely GetProfileBinary. I fixed it, so it's all good. I finally understand all this stuff. Thanks.

    C / C++ / MFC c++ question

  • what files to distribute with my MFC app?
    M mcguile257

    I used dependency walker. I copied the files: mfc42.dll and msvcrt.dll from my visual C++ CD and put those in my target machine's system folder. I also copied the release version of my app onto the target machine and it still doens't work. The target machine is WinXP and when I run my app it comes up with some dialog box that really doesn't explain the error. **EDIT** I looked up in MSDN about this and they said I had to register my DLLs on the target machine. How do I do this? Any more help is appreciated. Thanks.

    C / C++ / MFC c++ question

  • what files to distribute with my MFC app?
    M mcguile257

    I am wondering what files to distribute with my MFC app to get it to work on various different machines. In my project settings, it says I am using MFC in a shared DLL. When I go to run my app on my XP (versus my 98 where I developed it), it doesn't work. So, obviously I need to distribute some files, but which ones? Thanks.

    C / C++ / MFC c++ question

  • lag when selecting/dragging text in rich edit view?
    M mcguile257

    In my CRichEditView derived class, CEditorView, when I select text and scroll vertically, the view lags for a second before scrolling. When you usually do this in other programs, there is no lag time. Does anyone have any suggestions for me? Thanks kindly.

    C / C++ / MFC question

  • OnDraw not getting called
    M mcguile257

    OK, where is CCtrlView? Do I have to call Default to avoid this problem? I appreciate your responses, but I am a little confused about how to fix this with your current reply.

    C / C++ / MFC debugging help question

  • OnDraw not getting called
    M mcguile257

    The definition for CEditorView::OnDraw is: virtual void OnDraw( CDC *pDC );

    C / C++ / MFC debugging help question

  • OnDraw not getting called
    M mcguile257

    I have my CEditorView class, which is derived from CRichEditView. I put a breakpoint in my CEditorView::OnDraw function and it was never getting called. Why is OnDraw not getting called? Reason is, I want to be able to draw the line numbers and a margin, but I can't now that OnDraw is not getting called? Any help is appreciated!!

    C / C++ / MFC debugging help question

  • CColorDialog::SetCurrentColor crashing
    M mcguile257

    I customized CColorDialog into MyColorDialog and added a hex edit box. When the user edits the hex box, I need to call CColorDialog::SetCurrentColor, but it seems to crash everytime I do so. Anyone else have any problems with SetCurrentColor? Thanks.

    C / C++ / MFC question

  • drawing line numbers in MFC
    M mcguile257

    How does one go about drawing line numbers to an MFC application? Would I simply use a pen in my derived CView OnDraw function and draw the current lines or is there a different way? Thanks.

    C / C++ / MFC c++ graphics question

  • adding a color list box in a dialog MFC
    M mcguile257

    How do I add one of those cool list boxes that allow you to pick a color in the dialog box. I know how to add a list box to a dialog, but not how to add the color part to it. PS -- I'm not talking about CColorDialog, I want to know how to be able to pick a color inside the dialog list box.

    C / C++ / MFC c++ tutorial 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