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
Y

yytg

@yytg
About
Posts
18
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • UnClickable window... Clicks thru
    Y yytg

    Thanks

    C / C++ / MFC question

  • UnClickable window... Clicks thru
    Y yytg

    How 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

    C / C++ / MFC question

  • SetWindowRgn For Text Or Label
    Y yytg

    I 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

    C / C++ / MFC question

  • SetWindowRgn For Text Or Label
    Y yytg

    Thanks 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);
    

    }

    C / C++ / MFC question

  • SetWindowRgn For Text Or Label
    Y yytg

    I 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?

    C / C++ / MFC question

  • SetWindowRgn For Text Or Label
    Y yytg

    There 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

    C / C++ / MFC question

  • Popup Menu sends "UnInit" Before sending a command
    Y yytg

    I 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

    ATL / WTL / STL help question

  • Programmatic send copy command (CTRL+C)
    Y yytg

    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

    C / C++ / MFC c++ html com question

  • How I know when the "lineMakeCall" function finish
    Y yytg

    I 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

    C / C++ / MFC question

  • Recognize normal text on the screen
    Y yytg

    It's a good idea... I want a perfect way... not a easy

    C / C++ / MFC question

  • Recognize normal text on the screen
    Y yytg

    I 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

    C / C++ / MFC question

  • Recognize normal text on the screen
    Y yytg

    Thanks... http://blogs.msdn.com/oldnewthing/archive/2004/04/23/118893.aspx[^]

    C / C++ / MFC question

  • Recognize normal text on the screen
    Y yytg

    My 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

    C / C++ / MFC question

  • how to change toolbar in session expiary
    Y yytg

    Timer?!

    ATL / WTL / STL database question mysql help tutorial

  • The file "atlbase.h" dosent exist in VS 2005 - What I need to do?
    Y yytg

    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

    ATL / WTL / STL visual-studio question

  • The file "atlbase.h" dosent exist in VS 2005 - What I need to do?
    Y yytg

    I'm using VS 2005 trial

    ATL / WTL / STL visual-studio question

  • The file "atlbase.h" dosent exist in VS 2005 - What I need to do?
    Y yytg

    Thanks in advance

    ATL / WTL / STL visual-studio question

  • ::IsDialogMessage Makes the program stuck
    Y yytg

    I 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

    Windows Forms help c++ 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