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
R

Rui Lopes

@Rui Lopes
About
Posts
23
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WinXP Visual Styles (Themes)
    R 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

    C / C++ / MFC help question wpf json

  • Scope of try...catch constructions (over threads)
    R Rui Lopes

    IMHO it's not possible. You have to do some thread syncronization between the Main_thread and Worker_thread. ---- Rui Lopes

    C / C++ / MFC tutorial question

  • How to make the border and titlebar dissapear
    R 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

    C / C++ / MFC help tutorial question

  • How to make the border and titlebar dissapear
    R 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

    C / C++ / MFC help tutorial question

  • Animation in VC
    R 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

    C / C++ / MFC adobe question

  • Anti-Alias
    R Rui Lopes

    Use the new GDI+. Search for GDI+ or GDI plus on CodeProject Bys, Rui Lopes

    C / C++ / MFC tutorial question

  • How to get CD-ROM Manufacturer string?
    R 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

    C / C++ / MFC windows-admin hardware help tutorial question

  • WinXP Visual Styles (Themes)
    R 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

    C / C++ / MFC help question wpf json

  • Linux Programming
    R Rui Lopes

    Try this one (only system programming), http://www.advancedlinuxprogramming.com Rui Lopes

    The Lounge linux help question learning

  • The other side of CodeProject!
    R Rui Lopes

    I'm glad you like it! ;P

    The Lounge com question

  • The other side of CodeProject!
    R Rui Lopes

    Have you ever seen the other side of CodeProject? :eek: This must be the work of the Mr. Alien Coder! :laugh: :laugh:

    The Lounge com question

  • Do you know this guy?
    R Rui Lopes

    Have a look at this url, Who Is This Guy? :confused:

    The Lounge html question

  • Hey! I think somebody just hacked the CodeProject's main page
    R Rui Lopes

    lololololololololol what a joke! Rui Lopes

    The Lounge question

  • Chris, Will you display flags of other countries as well?
    R Rui Lopes

    Hello Chris, I will also want my country flag! :-D The Portuguese flag!! :-O Rui Lopes

    The Lounge question

  • Anybody into robotics?
    R 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

    The Lounge css hardware testing tools question

  • mac icons
    R 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

    The Lounge question

  • mac icons
    R 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

    The Lounge question

  • Problem with SetLayeredWindowAttributes(...)
    R 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

    C / C++ / MFC c++ help question

  • getting filetype description from _extension_
    R 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

    C / C++ / MFC json question

  • CRC-32 LIBRARY
    R 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

    Article Writing help 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