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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
N

nilaysoft

@nilaysoft
About
Posts
11
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Task Bar in Full Screen Mode Implementation
    N nilaysoft

    Dear, What I've used are: int cx = GetSystemMetrics (SM_CXSCREEN); int cy = GetSystemMetrics (SM_CYSCREEN); int cyCaption = GetSystemMetrics(SM_CYCAPTION); int cyMenu = GetSystemMetrics(SM_CYMENU); SetWindowPos (hwnd, HWND_TOPMOST, -4, -(cyCaption + cyMenu + 4), screenx + 8, screeny + (cyCaption + cyMenu) + 8, SWP_FRAMECHANGED);

    C / C++ / MFC question

  • TBNRF_HIDEHELP and RBBS_USECHEVRON
    N nilaysoft

    [Click for User Profile] Li Zhaoming 8:10 20 Oct '02 Dear Buddies, I always wondering that: 1) If I want to hide the "help" button in "Customize Toolbar" dialogbox, I should response the TBN_INITCUSTOMIZE notification and return TBNRF_HIDEHELP. However, TBNRF_HIDEHELP is never defined when compiled. 2) If I want to display a "Chevron" in a Rebar control, I should create the Rebar control with RBBS_USECHEVRON style. Howerve, RBBS_USECHEVRON is never defined either. Anything wrong? Is that because the version of SDK? Has the newest version SDK defined these two constans? Thanks!

    C / C++ / MFC help question announcement

  • WMI Terminate Win32_Process
    N nilaysoft

    Sorry, these two messages have been merged because of unknow reason. I don't know why... My Programming Page

    C / C++ / MFC c++ database json

  • About TBNRF_HIDEHELP and BBSR_Chans
    N nilaysoft

    Dear Buddies, I always wondering that: 1) If I want to hide the "help" button in "Customize Toolbar" dialogbox, I should response the TBN_INITCUSTOMIZE notification and return TBNRF_HIDEHELP. However, TBNRF_HIDEHELP is never defined when compiled. 2) If I want to display a "Chevron" in a Rebar control, I should create the Rebar control with RBBS_USECHEVRON style. Howerve, RBBS_USECHEVRON is never defined either. Anything wrong? Is that because the version of SDK? Has the newest version SDK defined these two constans? Thanks!

    C / C++ / MFC help question announcement

  • Task Bar in Full Screen Mode Implementation
    N nilaysoft

    Many Thanks! It works! goal

    C / C++ / MFC question

  • Task Bar in Full Screen Mode Implementation
    N nilaysoft

    I want implement full screen mode in my small application. I wrote codes as follows:

    cx = //width of the screen;
    cy = //height of the screen;
    SetWindowPos (hwnd, NULL, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED);

    They work pretty well, the minor boring thing is that the task bar (if Not autohide) is still there. it will not disappear unless I click it once? any solution? thanks, thanks. http://ihome.ust.hk/~zhaoming

    C / C++ / MFC question

  • help me
    N nilaysoft

    // Ctrl key pressed?
    if (GetKeyState(VK_CONTROL) & 0x8000)
    {}

    // Shift key pressed?
    If (GetKeyState(VK_SHIFT) & 0x8000)
    {}

    // Left Mouse Button pressed?
    If (GetKeyState(VK_LBUTTON) & 0x8000)
    {}

    ...

    http://ihome.ust.hk/~zhaoming

    C / C++ / MFC help tutorial question

  • Whether 'Control' Key is pressed ?
    N nilaysoft

    I response the WM_KEYDOWND message to shift my view if the arrow keys are pressed, while the moving speed should be faster if Control key is pressed simultaneously. This line of code is used:

    case VK_LEFT:
    case VK_RIGHT:
    if (GetKeyState(VK_CONTROL) == -128 || GetKeyState(VK_CONTROL) == -127)
    {
    // Do somthing here.
    }

    I do think there should exist a better way than this stupid one, do you know that?

    C / C++ / MFC performance question

  • using namespace std ?
    N nilaysoft

    Maybe this is a stupid question: what's the meaning of this line:

    using namespace std;

    Thanks

    C / C++ / MFC question

  • CascadeWindows and TileWindows
    N nilaysoft

    Hi, friends, I create more than one windows (different instance but belongs to the same window class) on desktop, and want to manage them by "Cascade", "Tile Horizontally" and "Tile Vertically" commands. Of course the first idea is using window SDK functions: CascadeWindows(...), TileWindows(...). The problem arise however, The two functions will restore all other windows on desktop, which is not a good design of course. The solution is to write my own CascadeWindows and TileWindows subroutines. But I don't know how to do it. any idea? Thanks! wuwu

    C / C++ / MFC design help tutorial question learning

  • PageSetup dialog and Print dialog
    N nilaysoft

    Dear Buddies, Do you have any experience of programming two kind of common dialog boxes: PageSetup dialog and Print dialog? My problem is about the margin Rect retrived from PageSetup dialog, I don't know how to apply this rect to Print dialog box because of the unit. I have tried "milimeter" or "inches", but they don't work. Does anyone know how-to or the relative sample codes? thanks! -------------- Ask the experts always.:laugh: :laugh:

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