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
T

Tommy2k

@Tommy2k
About
Posts
47
Topics
25
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [wtl]Making toolbars like in Winrar
    T Tommy2k

    Hi, I've been trying to get my app these big sized 32 bit toolbars like in winrar. I've checked the Alpa example that comes with WTL but this just works for windows XP as Winrar's toolbar seems to work for older versions of commonctr32 aswel... Does anybody know of a WTL app that has such toolbars? Or else, how are they created? Thanks..

    ATL / WTL / STL c++ tutorial question

  • What format is this file in and how to open it in C++
    T Tommy2k

    Hi, I just the following code but it just reads the first char and then it quits on my poor textfile. This is the same thing as what happened when i used the class. The size it determines is correct however. Please help me on this. I don't have any exp with anything else then just plain char arrays I really don't know what to do next. // reading binary file #include #include #include #include using namespace std; const char * filename = "J:\\MyJukeBox\\PLAYLIST\\MyFavorite.plp"; int main () { wchar_t * buffer; long size; wfstream file (filename, ios::in|ios::ate); size = file.tellg(); file.seekg (0, ios::beg); buffer = new wchar_t [size]; file.read (buffer, size); file.close(); cout << "the complete file is in a buffer. Size:" << size; MessageBox(0,buffer,NULL,0); delete[] buffer; return 0; }

    C / C++ / MFC c++ com sysadmin tutorial question

  • Coloring text of a checkbox
    T Tommy2k

    How can this be done? I know how to change its background color but the text I can't get right...

    C / C++ / MFC tutorial question

  • Drawline fucntion?
    T Tommy2k

    Thank you very much:)

    C / C++ / MFC graphics question

  • Drawline fucntion?
    T Tommy2k

    yeah i saw that function but it only lets me set 1 point.. not 2:s...

    C / C++ / MFC graphics question

  • Drawline fucntion?
    T Tommy2k

    Is there any function to draw draw a line with GDI? I can't seem it..:S

    C / C++ / MFC graphics question

  • Firewire etc....
    T Tommy2k

    I need to write an app that receives video frames through my firewire port. When these frames are in my VRAM I need to set some pixels and then view this particular frame. Is this possible on a modern PC? What references are there for this subject? I'm not interested in the audio or any other video source, I just need Firewire..I guess this will be directshow right? I checked some examples on this site but they don't show my video directly.

    C / C++ / MFC question

  • [wtl] CDialogImp that uses multiple dialogs?
    T Tommy2k

    How can I make my app just multiple dialogs instead of just the one that is defined in enum { IDD = * } ? I want to make it so that the window (the displayed dialog ;-)) changes when you press a button in the toolbar.... Any help is very welcome :)

    ATL / WTL / STL question c++ help

  • Stealing data from DirectDraw Surface.
    T Tommy2k

    I made an app to save MSN webcam conversations and it works quite well. All it does is saving the DC of the MSN windows, but i know there must be a better, lowlevel sollution for this. What approach should i take for writing an app that finds the Directx (MSN uses directx right?) surface and let me copy the data.

    C / C++ / MFC graphics game-dev question

  • Searching in a DC
    T Tommy2k

    How can i do a search in a DC? I need to determine if there's a certain set of pixels (another, much smaller DC) present in a big DC. How can i do this? I already did some searching on this site and on MSDN but i can't come up with anything usefull. Thanks.

    C / C++ / MFC question algorithms

  • converting this code tot non-mfc
    T Tommy2k

    i tried to convert the code showed in this article (http://www.codeproject.com/bitmap/screencapture.asp) to non-mfc Standard Win32 code, with a bit of WTL. I came up with this: void CMainDlg::CopyWndToClipboard(HWND pWnd ) { CBitmap bitmap; CClientDC dc(pWnd); HDC memDC; RECT rect; memDC = ::CreateCompatibleDC(dc.m_hDC); ::GetWindowRect(pWnd,&rect); bitmap.CreateCompatibleBitmap(dc.m_hDC, rect.right-rect.left,rect.top-rect.bottom ); CBitmap* pOldBitmap= (CBitmap*)(HBITMAP)::SelectObject(memDC,&bitmap); ::BitBlt(memDC,0, 0, rect.right-rect.left,rect.top-rect.bottom, dc.m_hDC, 0, 0, SRCCOPY); ::OpenClipboard(::GetParent(pWnd)) ; EmptyClipboard() ; SetClipboardData (CF_BITMAP, (HBITMAP)bitmap ) ; CloseClipboard () ; SelectObject(memDC,pOldBitmap); bitmap.Detach(); } Which doesn't seem to work. All is does is throw some rubbish on the clipboard. Does somebody know a function to replace my code or does somebody know what i'm doing wrong? Thanks :-)

    C / C++ / MFC c++ com graphics question

  • Problem with ContextMenu
    T Tommy2k

    When i draw a contextmenu on my window, i dont receive any WM_COMMAND's when i click a menu option. Where should they go? Thanks!

    ATL / WTL / STL help question

  • CHyperlink class in a Window
    T Tommy2k

    Come on please anybody, I'm begging you! I'm certain someone has tried (done?) this before... please..

    ATL / WTL / STL

  • CHyperlink class in a Window
    T Tommy2k

    ...instead of a dialog. I can't get it working and it's seriously pissing me off! Could someone give me some lines of code on this... or tell me if its even possible or if I'm just wasting time here...

    ATL / WTL / STL

  • Embedded HTML pages + images
    T Tommy2k

    I used the exact same combo already but it just doesnt't work. Maybe it's the point that I use an exe instead of a DLL. You think that's what's wrong? If that's what i need to do (Use a DLL) then could you maybe give me a link to a project that uses resource DLL's in different languages (Like MSN messenger)? Thanks for your awnser :-)

    C / C++ / MFC html hardware question learning

  • Embedded HTML pages + images
    T Tommy2k

    Still can't get this right....the res:// thingy only works for HTML pages and not for any image type :-(. What am I doing wrong? Showing you the code isn't really usefull because there isn't much to show...

    C / C++ / MFC html hardware question learning

  • Embedded HTML pages + images
    T Tommy2k

    In my project, i use a party HTML GUI. I included the pages as resources in the exe. I then let the HTML window navigate to res://NameOfApp.exe/305 . This works correctly. However, if i want to include an image (gif image sequence in my case), i can't get it done this way because there's no way to tell IE that the file i feed it is a GIF file , because it doesn't have an extension and there's no way i can use an extension for the file because it's a resource. Is there a way in HTML to tell the browser that the file is in fact a GIF file?

    C / C++ / MFC html hardware question learning

  • Message Reflection for WM_CTLCOLORSTATIC
    T Tommy2k

    If I use this, how do I reflect the message from to parrent to the child?

    ATL / WTL / STL help tutorial question

  • Message Reflection for WM_CTLCOLORSTATIC
    T Tommy2k

    I'm making a hyperlink control which i obviously need to color but i found out that chil controls don't automaticly receive the WM_CTLCOLORSTATIC message so i thought i needed to do this with Message Reflection. I however don't have a clue how to do this except for Notify messages. Can somebody help me out?

    ATL / WTL / STL help tutorial question

  • Getting the rect of the text in a Static
    T Tommy2k

    :-) Great! Thnx

    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