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
jeremysay
Posts
-
Web page memory -
Web page memorytom76 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 :((
-
Web page memoryhello, 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
-
transparent text background on a tab control?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
-
How to draw a transparent circle?HOLLOW_BRUSH ?:confused:
-
Sony LCD monitor (french)jancsi wrote: le + beau ( vaux mieux pour le prix ) Most beautifull (fortunately at this price)
-
modify style windowZed 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!
-
modify style windowin 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 useSetWindowPos
. have you any idea ? -
modify style windowthx 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
-
modify style windowthx Zed my window doesn't have
WS_DLGFRAME
. I have a little problem withSetWindowPos()
: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 flagsSWP_NOMOVE
but my view move and it does not remain where it was. So i would like to get border without callSetWindowPos
it isn't posible ?:confused: -
Multiple line in MessageBoxhello, 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 ...
-
modify style windowhello, 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
-
ScrollWindowthx 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 -
ModifyStyle ChildWindowhello, 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 theSetWindowPos
my child window don't move and why my view repositioned to (0,0) ?? i have try to removeSWP_FRAMECHANGED
in theSetWindowPos
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 -
ScrollWindowthx but i work with CHtmlView and i can't use SetScrollPos without error :( another idea ? thx again
-
ScrollWindowhello, 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 -
capture Bitmapthx 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.
-
capture Bitmaphello, 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
-
CHtmlView & ScrollBarI have only one word to say thank !!!! now I use the scrollbars which I see . thx again
-
CHtmlView & ScrollBarHello, 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 dom_HScroll.SetScrollPos(10,TRUE);
andint 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