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
J

jeremysay

@jeremysay
About
Posts
126
Topics
39
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Web page memory
    J jeremysay

    Thx for you answer ! I thought to this solution but i can't get all pixel state od the page only those there are display. So for me it is a problem

    C / C++ / MFC performance question

  • Web page memory
    J jeremysay

    tom76 wrote: I think you'll need to be a bit clerer on this question... yes sorry :( In fact i'm working with CHtmlView, and i want to know if it is possible to get all pixels state of web page from memory (RAM), i don't want to use GetPixel or.... I hope you understand PS : excuse for bad english :((

    C / C++ / MFC performance question

  • Web page memory
    J jeremysay

    hello, You know if it is posible to know where are stored in memory the pixels of a web page ? and if yes how ? thx in advance

    C / C++ / MFC performance question

  • transparent text background on a tab control?
    J jeremysay

    I am working with WinXP, and i have a problem with Tab control. All control like CStatic,CheckBox,slider.... haven't transparent backround, it's a little gray. (i found this picture http://wallsoft.form08.com/Tab.jpg[^] ) Do you know how to get transparent background ? thx in advance

    C / C++ / MFC com help tutorial question

  • How to draw a transparent circle?
    J jeremysay

    HOLLOW_BRUSH ?:confused:

    C / C++ / MFC graphics help tutorial question

  • Sony LCD monitor (french)
    J jeremysay

    jancsi wrote: le + beau ( vaux mieux pour le prix ) Most beautifull (fortunately at this price)

    C / C++ / MFC html help question

  • modify style window
    J jeremysay

    Zed wrote: is that the same window or are they parent-child? pChild is the parent child. Zed wrote: if the view is scrolled only from your code, maybe you can accumulate ScrollX and ScrollY in every WM_MOUSEMOVE handler call and thus have the total ammount by which the view was scrolled, so you can use that (i'm just guessing here). OK thx, i'll go to do this, i hoped there was a "function" like GetScrollWindow"....but no. thx Zed for you help!

    C / C++ / MFC question tutorial

  • modify style window
    J jeremysay

    in fact i scroll the view without use the scrollbar. when i click in the view and move my mouse i do :

    if (pMsg->message == WM_MOUSEMOVE)  )
    {
    	if (pMsg->wParam & VK_LBUTTON)
    	{
    		POINT Point = pMsg->pt;
    		long ScrollX = Point.x - m_Point.x;
    		long ScrollY = Point.y - m_Point.y;
    		ScrollWindow(-ScrollX,-ScrollY);
                    m_pPoint = Point
             }
    }
    

    so i move my view and i don't know really its coordinates. when i use :

    pChild->SetWindowPos(NULL, 0, 0, 0, 0,SWP_FRAMECHANGED |
    				SWP_NOMOVE | SWP_NOSIZE |
    				SWP_NOZORDER);
    

    my view loose its scrolling, so i want to know its coordinate before SetWindowPos. Or get a way to put the sizable border without use SetWindowPos. have you any idea ?

    C / C++ / MFC question tutorial

  • modify style window
    J jeremysay

    thx Zed for your help ! Zed wrote: maybe you can add SWP_NOREDRAW flag which will defer repainting, and then call MoveWindow() to resize the window to its previous size. i'm not sure if this will work, but you can try before call ModifyStyle ,i moved the view with ScrollWindow, there is a possibility to get "window scrolling" position (and not use GetScrollPos for scrollbar) ? thx again Zed

    C / C++ / MFC question tutorial

  • modify style window
    J jeremysay

    thx Zed my window doesn't have WS_DLGFRAME. I have a little problem with SetWindowPos() : pChild->SetWindowPos(NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER); after SetWindowPos my window has resizable borders, but i put the flags SWP_NOMOVE but my view move and it does not remain where it was. So i would like to get border without call SetWindowPosit isn't posible ?:confused:

    C / C++ / MFC question tutorial

  • Multiple line in MessageBox
    J jeremysay

    hello, try

    MessageBox(NULL,"Test\r\nTest","",MB_OK);
    

    i have try

    MessageBox(NULL,"Test\n\rTest","",MB_OK);
    

    on my system(XP) and it works fine ...

    C / C++ / MFC

  • modify style window
    J jeremysay

    hello, How can i modify style of child window, i use

    pChild->ModifyStyle(0,WS_THICKFRAME,SWP_NOMOVE | SWP_NOSIZE  );
    

    but the window haven't resizable border. you know how to do this ? thx in advance

    C / C++ / MFC question tutorial

  • ScrollWindow
    J jeremysay

    thx for your help :) but i don't want to use the scrollbar of CHtmlView, there are a lot of problem with there (i can't control scrollbar with some web site). I search a function like "ScrollTo(X,Y)" but it seems it doesn't exist :(( thank you nevertheless

    C / C++ / MFC tutorial

  • ModifyStyle ChildWindow
    J jeremysay

    hello, i have another problem with child window, when i want to allow resizing i display border and when i want to prevent resizing i hide border. now i do this to show Sizable Border:

    pChild->ModifyStyle(0 ,WS_SIZEBOX ,SWP_NOSIZE | SWP_NOMOVE |SWP_SHOWWINDOW  );
    
    pChild->SetWindowPos(NULL, 0, 0, 0,0,
    				SWP_FRAMECHANGED |
    				SWP_NOMOVE | SWP_NOSIZE |
    				SWP_NOZORDER);
    

    before do this i have scrolled my view with :

    ScrollWindow(-posHorz,-PosVer);
    

    my problem is when i want to show the border the view do a "ScrollTo (0,0)" ! i put "SWP_NOMOVE " in the SetWindowPos my child window don't move and why my view repositioned to (0,0) ?? i have try to remove SWP_FRAMECHANGED in the SetWindowPos and my view don't move but sizable borders aren't show! If you know how to add sizable border and remove them easily ... Excuse me for very bad english

    C / C++ / MFC help tutorial question

  • ScrollWindow
    J jeremysay

    thx but i work with CHtmlView and i can't use SetScrollPos without error :( another idea ? thx again

    C / C++ / MFC tutorial

  • ScrollWindow
    J jeremysay

    hello, I use Scroll window to scroll a view in child window. how to "ScrollTo(0,0)", i want to reposition my view. i have already use SetWindowPos(0,0,0,0,0,SWP_NOSIZE), but it seems doesn't work. thx in advance

    C / C++ / MFC tutorial

  • capture Bitmap
    J jeremysay

    thx for your answer ! there isn't another solution? there is not good if i must hide the app in foreground to capture the bitmap and show the app again.

    C / C++ / MFC help graphics question

  • capture Bitmap
    J jeremysay

    hello, i have a little problem when i want to capture bitmap. I work in MDI project, i want to capture a view in Childwindow. I can capture the view and save it in bmp file,It's work fine. But if i my app is not in the foreground i capture a bitmap of the foreground app. How can capture a bitmap of a view wich is not in the foreground (minized,or background) ?? thx for your help Excuse for bad english

    C / C++ / MFC help graphics question

  • CHtmlView & ScrollBar
    J jeremysay

    I have only one word to say thank !!!! now I use the scrollbars which I see . thx again

    C / C++ / MFC question

  • CHtmlView & ScrollBar
    J jeremysay

    Hello, In MDI project, i work with CHtmlView and i want to add scrollbar to my childs windows. so i do :

    BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
    {
    	cs.style = WS_VSCROLL | WS_HSCROLL |WS_OVERLAPPEDWINDOW;
    	m_HScroll.Create(SBS_BOTTOMALIGN ,CRect(0,0,0,0),this,ID_HSCROLL);
    }
    
    int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
            m_HScroll.SetScrollRange(0,50,TRUE);
            m_HScroll.SetScrollPos(0,TRUE);
    }
    

    When the prorgram start, i have scrollbars in my child window, greats ! I can detect :

    void CChildFrame::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
    void CChildFrame::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
    

    but when i do a m_HScroll.SetScrollPos(10,TRUE); the ScrollBar don't move it is always in the left. the user can use the scrollbar (it always stay in left position), i can detect when the user click on it and i can move my view, but i can't move my scrollbar. if i do m_HScroll.SetScrollPos(10,TRUE); and int toto = m_HScroll.GetScrollPos() toto == 10 ! but "at the screen" the scrollbar stay in the left. Have you any idea ? PS: excuse for bad english

    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