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
X

xtexistenz

@xtexistenz
About
Posts
6
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CRichEditCtrl problem
    X xtexistenz

    thanks, SetSel only has 2 parameters.. anyway i meant even if the selection was at the end of the text it still tries to scroll it in its way (like line by line) which causes the flicker, when i try to force it stay down it first goes up one line and then down i hope this made sense.. if not please tell me and ill explain again :P if there was a way to slow down the PC a lot or just the application you could see it very clearly whats happening lol btw i dont think i have said this before.. but if you look at MSN Messenger you will see that it doesnt have any flickering problem and im pretty sure it uses the rich edit control.. but yea its made by microsoft so they know the rich edit's secret lol but theres also GameSpy Arcade.. which works without a problem i dunno how they do it.. all i see is that they put in a custom scrollbar.. but i dont see how that helped this is because of auto vscroll, actually really check this out.. remove the auto vscroll property and it will never flicker.. you have to remove vertical scroll as well..

    C / C++ / MFC help tutorial question lounge

  • CRichEditCtrl problem
    X xtexistenz

    that flicker is because the rich edit always scrolls the caret into view.. which is a scroll by line.. to get rid of that flickering i would have to disable that rich edit "feature" i dont think you understood what i meant by flickering.. its not the standard light flickering.. its a very bad flicker which can be very annoying on slower pc's, it moves the whole text up one line then down.. this is very noticeable.. i tried many ways.. like ignoring WM_PAINT while resizing but didnt make any change.. i got no idea

    C / C++ / MFC help tutorial question lounge

  • CRichEditCtrl problem
    X xtexistenz

    ah sorry for the late reply.. yeah it works.. same goes for SB_BOTTOM but the problem is it creates some flicker.. you could see the lines going up and then down very fast.. i just need to find a way to scroll it down and not have that flicker.. thats all and i have no idea.. thanks

    C / C++ / MFC help tutorial question lounge

  • CRichEditCtrl problem
    X xtexistenz

    ah ok :P yes i tried PostMessage(WM_VSCROLL, SB_BOTTOM, 0); and SendMessage(WM_VSCROLL, SB_BOTTOM, 0); they do not work right if i dont add an Invalidate() after that but even after i do.. they cause the annoying flicker problem which i said at my first post your last solution doesnt work.. funny i can see the scrollbar flickering up and down but no change to the text area. lol. thanks again :)

    C / C++ / MFC help tutorial question lounge

  • CRichEditCtrl problem
    X xtexistenz

    hey, thanks for the reply i have tried those before.. and no luck m_richedit.SetScrollPos(SB_VERT, m_richedit.GetScrollPos(SB_VERT)); m_richedit.RedrawWindow(); they don't do anything if you have any more ideas please post them here thanks :) btw you never experienced it because you never used the control ? or you never noticed it ? (just curious) -- modified at 19:01 Monday 19th March, 2007

    C / C++ / MFC help tutorial question lounge

  • CRichEditCtrl problem
    X xtexistenz

    hey im having a rich edit problem.. lets say the control has some text.. more than its height size.. and you resize the rich edit in the dialog's WM_SIZE event from the bottom of the dialog to down youll see that the text in the rich edit remains at the same location and down there will be some empty space but the scrollbar position is down and when you click the scrollbar the text will go down at the bottom of the rich edit control where it should be when i resize it as well i tried so many methods of forcing the control to scroll down there but no one was really efficient and right for example i have this method [code] void CDDlg::OnSize(UINT nType, int cx, int cy) { CDialog::OnSize(nType, cx, cy); m_richedit.MoveWindow(200, 200, cx - 200, cy - 200, FALSE); m_richedit.PostMessage(WM_VSCROLL, SB_BOTTOM, 0); m_richedit.Invalidate(); } [/code] when i resize the dialog everything seems to work right but i can see the rich edit flicker the text up and then down which is pretty annoying.. i tried finding the message which tells the richedit that i resized it and make it not send the message.. but i couldnt really find it then i thought using LineScroll but i never figured it out how it works.. it doesnt really work right for me please think about both methods and tell me how i could do it right.. LineScroll seems ok.. but i kind of dislike the idea of a line scroll.. i use the rich edit as a chat window and it seems better if it has smooth scrolling instead of line scrolling anyway i cant really understand microsoft.. they released many versions of this control and never noticed their bug ??? i mean look at word pad which uses a rich edit control and do what i said above and resize it down after you add a lot of text.. youll see what happens which is very stupid IMO please help me.. im trying to fix this bug for many months ( im not joking ) and i cant continue my project.. im sure this will help many other people.. thanks

    C / C++ / MFC help tutorial question lounge
  • Login

  • Don't have an account? Register

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