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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
N

Nathan Going

@Nathan Going
About
Posts
12
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CSplitterWindow flicker when resizing
    N Nathan Going

    Ok, start with the CSplitterWindow, if you move the splitter bar left or right, both panes are resized smoothly using a set of calls to SetWindowPos internally. Now I have the CSplitterWindow created as a child of another CWindow derived "View". I catch the WM_SIZE event and call SetWindowPos to set the new size of the CSplitterWindow, when this happens it appears that the entire window gets redrawn, producing a "flicker" effect. In my "view" window, I catch the WM_ERASEBKGND message so it doesn’t happen; also I handle WM_PAINT so I can draw a margin around the CSplitterWindow. I'm trying to find a way to resize the entire window and at the same time reduce the flickering of the contents as much as possible. Thank you.

    ATL / WTL / STL com question announcement

  • CSplitterWindow flicker when resizing
    N Nathan Going

    I've created a CSplitterWindow that works perfectly except when resized. My Code[^] I use SetWindowPos to move the splitter as my "view" is resized, while sizing there is alot of flicker. How does the CSplitterWindow update it's panes when the splitter is moved so smoothly? Any suggestions would be greatly appreciated. Thanks, Nathan

    ATL / WTL / STL com question announcement

  • Live Messenger style window, having problems with border update and child controls flickering
    N Nathan Going

    I've modified CDialog to draw a window in a Windows Live Messenger style, using SerWindowRgn and with a custom drawn client area. One of the problems I’m having is when you size the window smaller, you see a gray border which shouldn’t be there. Please see My Code[^]. Am I handling the custom drawing correctly? Another problem is with controls flickering when I resize. I understand that this is caused by invalidating the entire window, but that's the only way I can cause the whole background to update. I will be adding in dynamic positioning and ownerdrawn controls. Any help would be greatly appreciated, Thank you.

    modified on Monday, August 25, 2008 12:10 PM

    C / C++ / MFC help com graphics question announcement

  • XP and Vista Caption bar problem with SetWindowRgn
    N Nathan Going

    No, I understand that. I’m setting the region when the user presses the button, then unsetting the region when it's pressed again. The problem is that when I put back WS_CAPTION the window was being redrawn without visual styles. I just figured out that I was clearing the region after setting WS_CAPTION back to my window. I switched the order and every thing worked perfectly.... Thanks for your response.

    C / C++ / MFC com help question

  • Function Calling
    N Nathan Going

    I'm not sure why you wouldnt be able to call it. Where are you calling it now?

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

  • XP and Vista Caption bar problem with SetWindowRgn
    N Nathan Going

    Im having a problem when I SetWindowRgn I lose the visual appearance of XP and Vista, as seen in Figure 1[^]. Any ideas of what I'm doing wrong? Here is the code i'm using DialogTest.rar Thanks

    C / C++ / MFC com help question

  • Live Messenger
    N Nathan Going

    I just tried that, which does work, I would just need to resize the window each time so the contents stay in same location. What I am seeing with the Windows Live Messenger is that the caption and thickframe is just hidden. View 1 shows that when the window is captured via ALT-Printscreen, that it is actually the full dimensions of the caption and frame. View 2 shows it with the frame in place. I was just curious how they accomplished this. Thanks.

    modified on Wednesday, August 20, 2008 7:20 AM

    C / C++ / MFC question

  • Live Messenger
    N Nathan Going

    How does Windows Live Messenger hide its frame like that? You press Alt and it shows. Does it SetWindowRgn around itself? Thank you.

    C / C++ / MFC question

  • Toolbar with button controls
    N Nathan Going

    What would be the best way to make that CControlBar-Derived class the full width of it's parent.

    C / C++ / MFC com design data-structures question

  • Toolbar with button controls
    N Nathan Going

    I want to make a toolbar type window that has owner drawn button controls on it. I also need to be able to "stack" them on one side, either left or right, but those are two different issues. Figure 1 is the application I’m trying to mimic and I know it was written in Qt. notice the controls across the top of the main window and to bars across each view on either side of the splitter. I believe it should be possible to design a bar that I could use in all three places with little modification. Figure 2 is what I can figure to be the window structure I should use. Please how would you implement the toolbar I described? Thank you, Nathan

    C / C++ / MFC com design data-structures question

  • I need to get the IHTMLDocument2 from a running instance of IE without using SHDocVw [modified]
    N Nathan Going

    I need to get the IHTMLDocument2 from a running instance of IE without using SHDocVw. Im trying to write an application that will fill a form in IE, but i am doing this in a seamless citrix session. so explorer is not running. how can i get the IWebBrowser2, and IHTMLDocument2? and how do i enumerate all instances of IE?

    C / C++ / MFC question

  • Finding coordinates inside a window that has been scrolled
    N Nathan Going

    Here’s what i am trying to do. My application call setcapture, then on the window that is clicked i would like to retrieve the coordinates inside that window. In lmousebuttondown i convert clienttoscreen, get hwnd from windowfrompoint, and then call screentoclient with the hwnd of the target window. The coordinates are the client area, but arent correct if the window is being scrolled. What can i do? Thanks

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