Hello, Sorry, but I didn't managed to make it work. I was just trying it out for the fun, so I scrapped the whole thing. Though, if you can make it work, I would like to known :-)
---- Rui Lopes
Hello, Sorry, but I didn't managed to make it work. I was just trying it out for the fun, so I scrapped the whole thing. Though, if you can make it work, I would like to known :-)
---- Rui Lopes
IMHO it's not possible. You have to do some thread syncronization between the Main_thread and Worker_thread. ---- Rui Lopes
Well, the ModifyStyle is a straitforward function to implement. Use this code instead of the ModifyWindow, SetWindowLong(hWnd, GWL_STYLE, GetWindowLong(hWnd, GWL_STYLE)&~WS_OVERLAPPEDWINDOW); ::SetWindowPos(hWnd, NULL, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE|SWP_NOZORDER|SWP_NOACTIVATE|SWP_FRAMECHANGED);
But since you are using the CreateWindowEx, you can create the window without the WS_OVERLAPPEDWINDOW style, so there is no need for this code.... ---- Rui Lopes
Well, if you are using the dialog editor from vc++, just change the border style to 'none' using the dialog properties 'styles' tab.... or with c++ code, call the ModifyStyle(WS_OVERLAPPEDWINDOW, 0, SWP_FRAMECHANGED) of your window class, and you have a window without any frame! ---- Rui Lopes
You have to use a offscreen bitmap (a memory dc) write to that and them just blit it to screen. Search Codeproject for double buffer or memory dc. For example look at this cp section, [Device Contexts](http://www.codeproject.com/gdi/#Device Contexts) ---- Rui Lopes
Use the new GDI+. Search for GDI+ or GDI plus on CodeProject Bys, Rui Lopes
How to get the manufacturer/model of a given cd-rom drive letter? I know how to get this from registry (HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi) but how to associate a given drive letter and a given scsi port? But if I can associte this information, how about other types of cdrom's (SCSI/EIDE)? Any help would be apreciated! Thanks in advance! Rui Lopes
Hello all! I’m trying to use the new Windows XP Visual Styles API (the themes stuff) to draw a toolbar, but I’m stuck X| I’m trying to get the font to draw the buttons but I have no idea of what is a PropId or where to get it from..... and the help of online help helps nothing...... So my question is, what is a PropId and where are they defined? My code snipped, HWND m_hWnd; HDC hDc; ... HTHEME hThemeToolBar= ::OpenThemeData(m_hWnd, L"TOOLBAR"); LOGFONT log; // the propid (?) that I’ve copied from the TmSchema.h file int iPropId= TMT_CAPTIONFONT; // What value to place here? I’ve also tried to make a for with all possible values but only one (PropId 12) returned a valid hr result :( and that one with a strange LONGFONT result….. HRESULT hr= ::GetThemeFont(hThemeToolBar, hDc, TP_BUTTON, TS_NORMAL, iPropId, &log); ... The error returned has always 0x80070490 (Element not found.)... the PropId 12 is the only one that returned a hr of 0, but I have no idea of what is it.... since the font returned is very strange.... and also with the call to GetThemeFont the Theme handle (hThemeToolBar) becomes invalid!? :confused: Anyone can help me with this? Thanks in advance! Rui Lopes
Try this one (only system programming), http://www.advancedlinuxprogramming.com Rui Lopes
I'm glad you like it! ;P
Have you ever seen the other side of CodeProject? :eek: This must be the work of the Mr. Alien Coder! :laugh: :laugh:
Have a look at this url, Who Is This Guy? :confused:
lololololololololol what a joke! Rui Lopes
Hello Chris, I will also want my country flag! :-D The Portuguese flag!! :-O Rui Lopes
1. I use no OS at all 2. PIC, 8051 derivates like 80535 and atmel. For what you want to do the PIC will do, well.... the other also will do! It's your choice.... ;) 3. They are some, http://www.microcontroller.com/ http://www.8052.com/ http://www.embedded.com/ Bye, Rui Lopes
Before posting this here, i've search at, wotsit, filespecs, altavista, yahoo.... but no results :( I'm very frustrated X| about this, because I didn't find nothing about this :( Do you have any onther link? Thanks! Rui Lopes
Hello! I'm looking for the mac icon file format, does anyone have a clue about this? Or a program that can convert them to any standard file format, png, gif, ico(?).... Thanks! Rui Lopes
Do you have the win2k sdk? If not you can download it from m$ or you can read search here at cp for an article that use that function! Rui Lopes
I think you can still use the SHGetFileInfo, but you have to specify the GFI_USEFILEATTRIBUTES flag in the uFlags argument, this way the function does not access the specified file, so you can pass a bogus file name with the extension you want. If this does not work, you can still look for all the informations you want in the registry...... Good luck! Rui Lopes
Take a look at the zlib, this compression library comes with a crc32 algorithm, the link for zlib is: http://www.info-zip.org/pub/infozip/zlib/ Rui Lopes