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
F

fd0129002

@fd0129002
About
Posts
11
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • GetForegroundWindow()
    F fd0129002

    hi, dellthinker The string "Notepad" can be in any other window's title. strstr(s, "Notepad") == 0 doesn't mean any thing. Try this one, hope it will be helpful.

    HWND hWnd = FindWindow("Notepad", NULL);
    if (hWnd)
    {
    printf("Notepad is open! ");
    }
    else
    {
    printf("Its not open");
    }

    ============ Einstein Seeing is believing.

    C / C++ / MFC question help

  • check box problem
    F fd0129002

    Please search it on google or MSDN .

    ============ Einstein Seeing is believing.

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

  • check box problem
    F fd0129002

    Hi, Trioum Try IsDlgButtonChecked function please.

    ============ Einstein Seeing is believing.

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

  • plus arrays
    F fd0129002

    I guess pbestArray is a pointer to the array, so I think pbestArray[i][j][k]-x[i][j][k] should be (*pbestArray)[i][j][k]-x[i][j][k] And , as Joan Murt said, you should add "*" between rand() and ...(something after it). May you good luck

    ============ Einstein Seeing is believing.

    C / C++ / MFC help data-structures question

  • How to get file name from a full path
    F fd0129002

    #include <Shlwapi.h>; #pragma comment(lib, "shlwapi.lib") LPTSTR lpszFileName = PathFindFileName(szPath);

    ============ Einstein Seeing is believing.

    C / C++ / MFC c++ json tutorial question career

  • About active console session id
    F fd0129002

    Hi, my question is how to get the active console session id of the Microsoft Windows operating system earlier than Windows XP. thanks a lot...

    ============ Einstein Seeing is believing.

    C / C++ / MFC tutorial question

  • About PostQuitMessage Function
    F fd0129002

    Thanks all. :) I think I have to learn something about Windows Message from the most basic level...

    C / C++ / MFC data-structures tutorial

  • Display the date and time as a string.
    F fd0129002

    Try FileTimeToSystemTime function.

    C / C++ / MFC question

  • user login path
    F fd0129002

    Try SHGetSpecialFolderPath function.

    C / C++ / MFC tutorial

  • About PostQuitMessage Function
    F fd0129002

    Steve, thanks a lot for your answer. More questions: 1.Where can I get more information about how the PostQuitMessage virtually sends a message? 2.Why Microsoft made such a difference between PostQuitMessage and PostThreadMessage(..., WM_QUIT, ..., ...)? How can we take advantage of this difference?

    C / C++ / MFC data-structures tutorial

  • About PostQuitMessage Function
    F fd0129002

    Someone said that PostQuitMessage function does not really send a WM_QUIT message to the message queue of the calling thread. I wonder what does this function exactly do. //Here is a simple test code /*If PostQuitMessage function sends a WM_QUIT message to the message queue of the calling thread, GetMessage(..., hwnd, ..., ...) can't get the WM_QUIT message, the application won't leave the message loop. But in this example: 1.compile the source ; 2.Ctrl+F5 to run it; 3.D&D to move the window; 4.press the corss to close window; 5.found that the application process disappear from the "task manager " It seems that GetMessage(..., hwnd, ..., ...) got the WM_QUIT message. Someone said it's because of that PostQuitMessage is called before DestroyWindow. But I can't get the same result when debugging by F5. Sorry for my poor English......thanks for your attention. */ #include #include LRESULT CALLBACK WinSunProc( HWND hwnd, // handle to window UINT uMsg, // message identifier WPARAM wParam, // first message parameter LPARAM lParam // second message parameter ); int WINAPI WinMain( HINSTANCE hInstance, // handle to current instance HINSTANCE hPrevInstance, // handle to previous instance LPSTR lpCmdLine, // command line int nCmdShow // show state ) { BOOL bRet = FALSE; WNDCLASS wndcls; wndcls.cbClsExtra=0; wndcls.cbWndExtra=0; wndcls.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH); wndcls.hCursor=LoadCursor(NULL,IDC_CROSS); wndcls.hIcon=LoadIcon(NULL,IDI_APPLICATION); wndcls.hInstance=hInstance; wndcls.lpfnWndProc=WinSunProc; wndcls.lpszClassName="Weixin2003"; wndcls.lpszMenuName=NULL; wndcls.style=CS_HREDRAW | CS_VREDRAW; RegisterClass(&wndcls); HWND hwnd; hwnd=CreateWindow("Weixin2003","CreateWindow",WS_OVERLAPPEDWINDOW, 0,0,600,400,NULL,NULL,hInstance,NULL); ShowWindow(hwnd,SW_SHOWNORMAL); UpdateWindow(hwnd); MSG msg; while((bRet = GetMessage(&msg,hwnd,0,0)) != FALSE) { /*if(bRet == -1) { break; }*/ TranslateMessage(&msg); DispatchMessage(&msg); } return 0; } LRESULT CALLBACK WinSunProc( HWND hwnd, // handle to window UINT uMsg, // message identifier WPARAM wParam, // first message parameter LPARAM lParam // second message parameter ) { DWORD dwCurThreadID = GetCurrentThre

    C / C++ / MFC data-structures tutorial
  • Login

  • Don't have an account? Register

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