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

rw104

@rw104
About
Posts
30
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Network Machines
    R rw104

    Thanks Mike! Gonna use NetWkstaGetInfo()

    C / C++ / MFC sysadmin json question

  • Network Machines
    R rw104

    Sounds good thanks!!!:-D

    C / C++ / MFC sysadmin json question

  • Network Machines
    R rw104

    Is there any Network based API Call to determine whether a machine exists on a network, a bit like what the '_access' call does for files?

    C / C++ / MFC sysadmin json question

  • I don't have the CTime for this!
    R rw104

    Sorry regarding the e.g. e.g. for Local Time 12th July 2007 3:00am (GMT +4:00 DST), the GMT day actually started on 11th July 05.00am (GMT +4:00 DST).

    C / C++ / MFC

  • I don't have the CTime for this!
    R rw104

    Greetings, I was led to believe that SYSTEMTIME is a UTC time. Why then when I set my clock to the timezone (Baku GMT +04:00) with dayliight savings on (I have advanced to July 2007 so DST is in effect) i call CTime::GetAsSystemTime() I get the local time in the wHour, wMinute etc... structure members? SYSTEMTIME myTime; CTime temp= CTime::GetCurrentTime(); temp.GetAsSystemTime(myTime); Eventually all i want to do is given the Local Date/Time get the Local Date/Time @GMT Start of Day e.g. for Local Time 12th July 2007 3:00am (GMT +4:00 DST), the GMT day actually started on 11th July 19.00am (GMT +4:00 DST).

    C / C++ / MFC

  • CComboBox dropdown bit is hidden
    R rw104

    Cheers Iain just the trick!!

    C / C++ / MFC help

  • CComboBox dropdown bit is hidden
    R rw104

    Hi, I am after a quick fix. I have dynamically created a CComboBox control. It works fine, but the drop down part does not seem to draw. I cannot see any obvious calls to adjust the height of the dropdown Cheers

    C / C++ / MFC help

  • Active X Kids!!
    R rw104

    Can I manually insert an activeX into to an existing activeX?

    C / C++ / MFC com question

  • How to draw a bitmap from the memory.
    R rw104

    CDC imgDC;//temp CDC to render the bitmap into imgDC.CreateCompatibleDC(pdc); //pdc is the standard screen dialog CDC, imgDC needs to be compat.. CBitmap yourBitmap; yourBitmap.LoadBitmap(IDB_RESOURCEIMAGE); //IDB_RESOURCEIMAGE is an image resource //You already have a pointer to a bitmap so you do not need these two lines. imgDC.SelectObject(yourBitmap);//bitmap gets selected into the dc //bitblt the image , you 'll need to decide co-ordiantes pdc->BitBlt(0,0,100,100,&imgDC,0,0,SRCCOPY); That's it;P

    C / C++ / MFC graphics performance tutorial

  • Bitmap print problem
    R rw104

    Soz!,other replies were not there when I replied, Im just not quick enough, well I was eating lunch!!:~

    C / C++ / MFC help graphics question

  • How to draw a bitmap from the memory.
    R rw104

    Select the bitmap into a new device context, (must be compatible, CreateCompatibleDC() does this); then just CDC->BitBlt(); on the OnPaint() proc of the dialog app

    C / C++ / MFC graphics performance tutorial

  • Bitmap print problem
    R rw104

    I expect that the bitmap is tiny on the print out? is this what is happening? if so it is because you are drawing the bitmap into a printing device context, in which case a much higher resolution is used, you need to use the CDC function StretchBlt() to draw the bitmap into a resolution equivalent rectangle which you will need to work out. So look up StretchBlt()on MSDN its is very simple.!! this function simply stretches the bits in the bitmap accordingly. Print preview probably works because it uses a screen DC just like what you are drawing on. P.S. I hope this is the problem you are getting, if not soz!! :-D

    C / C++ / MFC help graphics question

  • Carriage return- How to identify?
    R rw104

    It has an ascii value of decimal 13, eg. if(nChar==13)AfxMessageBox("Carriage Return");

    C / C++ / MFC question tutorial

  • Window style for manually created CEdit
    R rw104

    I have create some dynamic CEdit controls.. e.g... CEdit newEdit; // as a member var of class in the header newEdit.Create(WS_VISIBLE|ES_NUMBER|WS_DLGFRAME ,startRect,this,NULL); ... What window style flags do I need to set so the CEdit looks like a standard CEdit that you get when adding to a dialog resource? Thanks in advance

    C / C++ / MFC question learning

  • dialog box constantly reappearing
    R rw104

    Are you calling UpdateData in the right place\correctly? Sounds like the associated member variable is not being kept up-to date as you are expecting. You may already know this, but its a possiblilty all the same!! X|

    C / C++ / MFC question help

  • Active X subclassing
    R rw104

    I have subclassed an the EDIT control in my active x project. How can I get at the base class data and methods, from within my super active x class? its really annoying, it must be so simple!!!;P

    C / C++ / MFC question

  • Subclassing / embedding Active X's
    R rw104

    Greetings... In VC++ 6 I want to create an activeX that contains another activeX, is this possible? I have tried subclassing the control but I cant get the thing running? It works if you subclass from ActiveX's that are listed in the project wizard dropdown (upon wizard project creation, step 2 I think, like BUTTON for example) but does not if you are trying to inherit from a custom activeX!!! Cheers

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

  • Windows Shutdown
    R rw104

    well spotted, I forgot that directly after I posted the message I had to go to the toilet and crack one off over your mum...

    The Lounge help question

  • Windows Shutdown
    R rw104

    doh! yeah yeah, realised that I soon as i pressed the submit button. thanks for the smart, witty, sarcastic comment though I did'nt expect that for a second

    The Lounge help question

  • Windows shutdown
    R rw104

    hello, I want to prevent user shutdown. I am catching the WM_QUERYENDSESSION message and returning a 1, which occording to the inline help should stop the shutdown process. It works on occassions but crashes on others, it seems to be completely inconsistent too...I know i am cathing the WM_QUERYENDSESSION so its not anything else... Is there something else I need to do??? Thanks in advance

    C / C++ / MFC 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