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
Z

zt9788

@zt9788
About
Posts
14
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Menu question [modified]
    Z zt9788

    I have a appication to load menu from resource, and want to change the menu style dynamically from "POPUP" to "STRING". I wrote the following code: pSubMenu->ModifyMenu(6,MF_BYPOSITION|MF_POPUP,(UINT)m_Menu.m_hMenu,"xxxM(&I)\tI"); m_Menu is a pop menu. And now i want to change the menu style to "STRING": pSubMenu->ModifyMenu(6,MF_BYPOSITION|MF_STRING,(UINT)IDM_RECV,"xxxM(&I)\tI"); The menu caption and icon was changed, but the menu was still "POPUP" style. Who can tell me how to solve this problem? Help!!! -- modified at 22:52 Thursday 23rd November, 2006

    hi

    C / C++ / MFC help question tutorial learning

  • CreateService error
    Z zt9788

    i use CreateService to create a driver service then CreateService return NULL i use GetLastError() then return 4 (System cannot open file) i can create service on 2000 system,but in xp system i can not what make this error who can help me? hi

    C / C++ / MFC help question

  • problem with MessageBox!!! [modified]
    Z zt9788

    MessageBox(_T("Hello")) hi

    C / C++ / MFC help csharp visual-studio tutorial question

  • Pasting into a CEdit Control on a Dialog
    Z zt9788

    if(OpenClipboard()){ CString cellText = "This is a test"; HGLOBAL clipbuffer; EmptyClipboard(); clipbuffer = GlobalAlloc(GMEM_DDESHARE, cellText.GetLength()+1); char * buffer; buffer = (char*)GlobalLock(clipbuffer); strcpy(buffer, LPCSTR(cellText)); GlobalUnlock(clipbuffer); SetClipboardData(CF_TEXT,clipbuffer); CloseClipboard(); } hi

    C / C++ / MFC visual-studio performance

  • How to Change CPropertyPage's Title
    Z zt9788

    yes,my CAboutDlg is derved from CPropertyPage!! hi

    C / C++ / MFC c++ database tutorial

  • How to Change CPropertyPage's Title
    Z zt9788

    Thanks i call the function which to change CPropertypage's title,when i click the button in the CPropertypage(others)! Main.h CPropertySheet m_sheet; CAboutDlg m_about; Main.cpp BOOL COptionDlg::OnInitDialog() { ..... m_sheet.AddPage(&m_about); m_sheet.Create(this, WS_CHILD|WS_VISIBLE,WS_EX_CONTROLPARENT); m_sheet.SetWindowPos(NULL, 4, 4,25, 50, SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE); .... } CAbout.cpp //the CAboutDlg was Created void CAboutDlg::UpdateUI() { CPropertySheet* pSheet = (CPropertySheet*)GetParent();//Exception } hi

    C / C++ / MFC c++ database tutorial

  • How to Change CPropertyPage's Title
    Z zt9788

    Thanks for you reply! but SetWindowText is not ok! CPropertySheet* pSheet = (CPropertySheet*)this->GetParent(); //Exception!!! //addition to the above code COptionDlg* dlg = (COptionDlg*)this->GetParentOwner(); TCHAR buf[MAX_PATH]; TC_ITEM TabCtrlItem; hi

    C / C++ / MFC c++ database tutorial

  • How to Change CPropertyPage's Title
    Z zt9788

    How to Change CPropertyPage's Title i wrote the following code, however, the exception occurs in int index = m_sheet.GetPageIndex(this);//make a Exception Thanks //Main.h CPropertySheet m_sheet; CAboutDlg m_about; //Main.cpp ... m_sheet.AddPage(&m_about); m_sheet.Create(this, WS_CHILD|WS_VISIBLE,WS_EX_CONTROLPARENT); m_sheet.SetWindowPos(NULL, 4, 4,25, 50, SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE); .... //CAbout.cpp ... m_sheet = GetPrient(); CString szDlgName(_T("test")); TC_ITEM TabCtrlItem; TabCtrlItem.mask = TCIF_TEXT; TabCtrlItem.dwState = TCIS_BUTTONPRESSED; TabCtrlItem.pszText = buf; strcpy(TabCtrlItem.pszText,szDlgName); int index = m_sheet.GetPageIndex(this);//make a Exception // probably the m_sheet is null caused exception, why it is happened m_sheet.GetTabControl()->SetItem(index,&TabCtrlItem); ... hi -- modified at 1:26 Friday 19th May, 2006

    C / C++ / MFC c++ database tutorial

  • Read ini file?
    Z zt9788

    I have a program with some ini profile files. For dynamicly changing profile files when the app is running, i change the m_pszProfileName value which is a attribute of the App Class. But some problems bother me, the values are loaded correctly for each ini file when the app first running, while it does'nt work after i changed the m_pszProfileName value when the app run. Can anybody help me? Thanks. void update() { .... free((void*)m_pszRegistryKey); m_pszRegistryKey = NULL; free((void*)m_pszProfileName); m_pszProfileName =_tcsdup(szPath); ....} ... { AfxGetApp()->GetProfileString(......); } ... hi

    C / C++ / MFC help question announcement

  • how to monitor the network
    Z zt9788

    how to know the app's name which is sending or receiving data packages in the network. i know using the DDK can work,but i do not know how to use it who can give me some idea. Thanks hi

    C / C++ / MFC sysadmin tutorial

  • using process to look for hwnd
    Z zt9788

    Thanks hi

    C / C++ / MFC tutorial

  • using process to look for hwnd
    Z zt9788

    There are a lot of hWnds in a top level window, such as Static, Button, EditBox etc. Using EnumWindow to look for hWnd wastes a lot of resources of system, and makes the system slowly. Can anybody give me a good idea!! thanks. hi

    C / C++ / MFC tutorial

  • using process to look for hwnd
    Z zt9788

    i use CreateToolhelp32Snapshot function to seach all the process id , but i can not use process id to look for the main frame hwnd!! can anyone tell me how to find that Thanks hi

    C / C++ / MFC tutorial

  • how to delete the trayicon started by another app.
    Z zt9788

    how to delete the trayicon started by another app. I only have the Trayicon App's HWND, and i do not know its uid and callback function ect... can anyone help me for deleting the trayicon by using my own App.? i appreciate for if it is deleted, how to restore the trayicon just being deleted I know the MSN plug-in can hide the trayicon and the windows of the MSN. It really convenience that officer can use this to hide the MSN when the manager coming when they're using MSN to contact with friends.(because the manager thought MSN was a waste of working time) I thought [ShellRegisterCallbacks] could do this. Using this callback function can forward the [Shell_NotifyIcon] function to a custom shell. But this way can only work when the MSN runs after the app, I don't know how to do this when the MSN has already run. hi

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