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..
Tommy2k
Posts
-
[wtl]Making toolbars like in Winrar -
What format is this file in and how to open it in C++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; }
-
Coloring text of a checkboxHow can this be done? I know how to change its background color but the text I can't get right...
-
Drawline fucntion?Thank you very much:)
-
Drawline fucntion?yeah i saw that function but it only lets me set 1 point.. not 2:s...
-
Drawline fucntion?Is there any function to draw draw a line with GDI? I can't seem it..:S
-
Firewire etc....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.
-
[wtl] CDialogImp that uses multiple dialogs?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 :)
-
Stealing data from DirectDraw Surface.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.
-
Searching in a DCHow 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.
-
converting this code tot non-mfci 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 :-)
-
Problem with ContextMenuWhen 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!
-
CHyperlink class in a WindowCome on please anybody, I'm begging you! I'm certain someone has tried (done?) this before... please..
-
CHyperlink class in a Window...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...
-
Embedded HTML pages + imagesI 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 :-)
-
Embedded HTML pages + imagesStill 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...
-
Embedded HTML pages + imagesIn 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?
-
Message Reflection for WM_CTLCOLORSTATICIf I use this, how do I reflect the message from to parrent to the child?
-
Message Reflection for WM_CTLCOLORSTATICI'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?
-
Getting the rect of the text in a Static:-) Great! Thnx