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

Taran9

@Taran9
About
Posts
24
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to do user interface(UI) design?
    T Taran9

    You can always subclass the existing controls and create your own using bitmaps..there are lots of links on CodeProject itself.

    C / C++ / MFC design c++ question tutorial

  • How to Get desktop coordinates.
    T Taran9

    For determining the resolution(xMax X yMax), you can use

    xMax = GetSystemMetrics(SM_CXSCREEN)
    yMax = GetSystemMetrics(SM_CYSCREEN)

    and for knowing the coordinates, use GetClientRect and change it to screen coordinates, if required, by using ClientToScreen API.

    C / C++ / MFC tutorial

  • equivalent of c# @"" string literal?
    T Taran9

    use double backslash like "C:\\test.jpg"

    C / C++ / MFC csharp c++ question

  • [RESOLVED]using enum in #if preprocessor directive [modified]
    T Taran9

    ok.. got it. Thanks!

    C / C++ / MFC help

  • [RESOLVED]using enum in #if preprocessor directive [modified]
    T Taran9

    Yeah! u r correct! But why so? I mean why is it ok if I assign it to an int and not otherwise?

    C / C++ / MFC help

  • [RESOLVED]using enum in #if preprocessor directive [modified]
    T Taran9

    «_Superman_» wrote:

    You cannot mix them this way.

    Tell me one thing if I replace enum with #define and instead of AfxMessageBox, I define varA, then it compiles.

    #define APPLE 0
    #define ORANGE 1
    #define SELECTED APPLE

    #if SELECTED == 1
    int varA = 100;
    #else
    int varA = 101;
    #endif

    Replacing enum with #define is fine but isn't the definition of varA also handled by compiler only? I mean why int varA = 101; is ok and AfxMessageBox not?

    C / C++ / MFC help

  • segmentation fault issue in derived class assigment [modified]
    T Taran9

    First of all, you have forgotten to derive bc from ab here.

    hawk23reddy wrote:

    class bc

    Secondly, change the signature of get from

    hawk23reddy wrote:

    void get(ab* c)

    to

    hawk23reddy wrote:

    void get(ab** c)

    and while calling get, pass address of b as argument.

    C / C++ / MFC help question

  • wndTopMost - getting C2065 error
    T Taran9

    DougButtimer wrote:

    dlgEnd.SetWindowPos(&wndTopMost,60,80,0,0,SWP_NOSIZE);

    Use dlgEnd.SetWindowPos(&CWnd::wndTopMost,60,80,0,0,SWP_NOSIZE); instead.

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

  • Win32: Get message notification of other application's close/exit.
    T Taran9

    WindowsPistha wrote:

    Not all the applications are generating a WM_CLOSE message (Ex: Total Video Player Exe) (-) If the application was closed through the "Exit" menu or button (e.g. File->Exit) , I can't trap that message

    Why don't you capture WM_QUIT instead? This is the only message that finally halts the Message Loop. But, you won't be able to track abnormal termination of an application with this.

    C / C++ / MFC question

  • Create file with full permission control to user.
    T Taran9
    1. You can try exploring the flags of CFile ctor. 2) And if not satiated with what you are trying to achieve, then try using CreateFile, modify its security attributes and pass its handle to CFile ctor.
    C / C++ / MFC question

  • Handling Shift + Tab key combination
    T Taran9

    Follow the second question in this article. http://msdn.microsoft.com/en-us/magazine/cc301431.aspx[^] and for exact code, click on figure 4 http://msdn.microsoft.com/en-us/magazine/bb984939.aspx[^]

    C / C++ / MFC tutorial

  • Windows and Threads
    T Taran9

    Thanks for correcting me!

    C / C++ / MFC question

  • Windows and Threads
    T Taran9

    Stuart, Isn't message queue an application level data structure that's common to all its threads?

    C / C++ / MFC question

  • How to calculate the time between LBUTTONDOWN and LBUTTONUP?
    T Taran9

    You can use 'GetDoubleClickTime' to retreive double click time for your mouse.

    C / C++ / MFC help tutorial question

  • Erase text in transparent window
    T Taran9

    :D

    C / C++ / MFC question

  • How To Beautify the Software Interface In MFC?
    T Taran9

    Use Adobe Photoshop to make custom defined bitmaps of whatever design you want and paste it onto the dialogs during initialization + OnPaint handlers. Simple! There are numerous code samples available on this site.

    C / C++ / MFC question c++ design tutorial

  • AfxRegisterWndClass
    T Taran9

    U can do the registration in 'InitInstance' method of Application derived class(before 'DoModal' of the main dialog)

    WNDCLASS wc = {0};
    wc.style = CS_BYTEALIGNWINDOW|CS_SAVEBITS|CS_DBLCLKS;
    wc.lpfnWndProc = DefDlgProc;
    wc.cbWndExtra = DLGWINDOWEXTRA;
    wc.hInstance = m_hInstance;
    wc.hIcon = LoadIcon(IDR_MAINFRAME);
    wc.hCursor = ::LoadCursor(NULL, IDC_ARROW);
    wc.hbrBackground = CreateSolidBrush(GetSysColor(COLOR_BTNFACE));
    wc.lpszClassName = ATOM cls = RegisterClass(&wc);

    C / C++ / MFC tutorial question

  • Problem in Image Displaying in a VC++ Application
    T Taran9

    Refer [^]

    C / C++ / MFC help c++ tutorial

  • One doubt
    T Taran9

    Why don't you register a callback in the module where data is rcvd. and call that callback as soon as (dataHasCome)

    C / C++ / MFC css algorithms

  • typecasting WCHAR to char
    T Taran9

    Use WideCharToMultiByte API.

    C / C++ / MFC json
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups