Thanks
yytg
Posts
-
UnClickable window... Clicks thru -
UnClickable window... Clicks thruHow do you create a window so when someone clicks on it the click event go to the window under it? (not the parent) thanks in advance
-
SetWindowRgn For Text Or LabelI did a test in debug mode with breakpoints...(not the best way to check) 1000*1000=1,000,000 loop It was only 5 sec. a normal textout will not export so much as so. Update...
CSize sizeText;dc.GetTextExtent(str,str.GetLength(),&sizeText); for (int x=r.left;x<sizetext.cx;x++)> { for (int y=r.top;y<sizetext.cy;y++)>
....
modified on Monday, December 29, 2008 9:34 AM
-
SetWindowRgn For Text Or LabelThanks for helping The function don't work with all fonts so I did this
SetRgn(CString str)
{
CRect r;GetClientRect(&r);
CMemoryDC dc(GetDC(),r);
CFont font;font.CreatePointFont(120,L"Arial",0,true);
COLORREF bgColor=dc.GetBkColor();
dc.FillSolidRect(r,bgColor);dc.SelectFont(font); dc.TextOut(0,0,str); CRgn rgn,tRgn;rgn.CreateRectRgn(0,0,0,0); for (int x=r.left;x<r.right;x++)> { for (int y=r.top;y<r.bottom;y++)> { if(!(!tRgn))tRgn.DeleteObject(); COLORREF c=dc.GetPixel(x,y); if(c!=bgColor) { tRgn.CreateRectRgn(x,y,x+1,y+1); rgn.CombineRgn(rgn,tRgn,RGN\_OR); } } } SetWindowRgn(rgn);
}
-
SetWindowRgn For Text Or LabelI want to display text on the screen in such a way so the user will see only the text (Not the window). The RGN is made to disable coloring outside of specific places in the window. The effect of it is so you can make windows in a shape you design as so http://www.codeproject.com/KB/GDI/coolrgn.aspx[^]. How do I do the same effect on text?
-
SetWindowRgn For Text Or LabelThere is a lot of samples for RGN's for bitmaps but I need to create a RGN for Text with a font and size. How can I do it? thanks in advance
-
Popup Menu sends "UnInit" Before sending a commandI did a window just for the menu so inherit from CFrameWindowImpl. Then I add dynamic items to the menu. I captured the MSG_WM_MENUCOMMAND(OnMenuCommand) In the function "OnMenuCommand" I try to get the information of the item ... The menu handle was invalid... So I did a test and found out so The message "MSG_WM_UNINITMENUPOPUP" is sent before the message "MSG_WM_MENUCOMMAND" Why is it so? and how I can solve the problem? Thanks in advence
-
Programmatic send copy command (CTRL+C)I found this link http://vb-helper.com/howto_copy_all_browser_text.html I tried to imitate the function DoEvents as so
void DoEvents(int milisec=5) { MSG msg; DWORD dwStart=GetTickCount(); while (true) { if(GetTickCount()-dwStart>milisec)return; if(!PreTranslateMessage(&msg)) { ::TranslateMessage(&msg); ::DispatchMessage(&msg); } } }
But when I call the functions - it's not working... How do I do it in C++ Thanks in advance -
How I know when the "lineMakeCall" function finishI set the messages callback as so
lineSetStatusMessages(m_hLine,lpDevCaps->dwLineStates,0);
But I don't get the message "LINECALLSTATE_RINGBACK" It's possible so the device don't support this message? Or how do I say to the system to send this message Or maybe I need to take this message "LINECALLSTATE_PROCEEDING" Thanks in advance -
Recognize normal text on the screenIt's a good idea... I want a perfect way... not a easy
-
Recognize normal text on the screenI did like this
if (SUCCEEDED(AccessibleObjectFromPoint(pt, &pacc, &vtChild))) { BSTR bsName = NULL; BSTR bsValue = NULL; pacc->get_accName(vtChild, &bsName); pacc->get_accValue(vtChild, &bsValue); }
The question is - How do I get the place of the marker in a text box Thanks a lot -
Recognize normal text on the screen -
Recognize normal text on the screenMy idea is so... The user put the cursor on a phone number from any program in the computer. He presses a Hot Key - and my program will dial the number. How do I recognize the text the cursor is on... If somebody can please bring a sample Thanks a lot
-
how to change toolbar in session expiaryTimer?!
-
The file "atlbase.h" dosent exist in VS 2005 - What I need to do?I reinstalled it and now its working... I guess so in the first time I didn't install the MFC without realizing Thanks a lot
-
The file "atlbase.h" dosent exist in VS 2005 - What I need to do?I'm using VS 2005 trial
-
The file "atlbase.h" dosent exist in VS 2005 - What I need to do?Thanks in advance
-
::IsDialogMessage Makes the program stuckI made a Dialog and I put it on a Tab (WTL) And I found out so if I press TAB so pass a Button the program get stuck.... Somebody nows what the problem? Thanks in advance