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
V

Vu Nguyen

@Vu Nguyen
About
Posts
22
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Single application instance
    V Vu Nguyen

    This is where the answer is: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q243953 I found this out after failing to ask for help on this forum. I guess there are more than 1 way to do it. It just happened to me that all the solutions provided by this forum does not work for me at all. Vu http://support.microsoft.com/default.aspx?scid=kb;EN-US;q243953 vucsuf

    C / C++ / MFC help question

  • Single application instance
    V Vu Nguyen

    Hi! I tried your example, but failed to get the result. the AfxRegisterClass() always returns false. DO you know why? I use appWizard to make my dialog base application Thank You very much Vu vucsuf

    C / C++ / MFC help question

  • VC++ Package Deployment
    V Vu Nguyen

    Hi! I use install shield to make setup disk. However, the installed package does not fix the problem. The OS still complains about the MFC42.dll Do I miss anything? Thanks Vu vucsuf

    C / C++ / MFC c++ csharp visual-studio sysadmin

  • VC++ Package Deployment
    V Vu Nguyen

    Hi All! under MS Visual Studio, we have a tool call Package Deployment Wizard for Visual Basic. This tool helps make a setup package for an EXE file of VB. It attaches all the dll files to the VB exe file basically. Do we have anything like that for VC++? I ask this because one of my applications does not run under NT4.0 SP6 when I compile it using "use MFC in a shared dll". The file needed is MFC42.dll; Thanks Vu vucsuf

    C / C++ / MFC c++ csharp visual-studio sysadmin

  • Dialog Menu Question
    V Vu Nguyen

    Hi All! I made a dialog application. When I build it using the appWizard, I did not choose to have menu on the dialog. Now I need to have a menu, can I add it in? Thanks in advance Vu vucsuf

    C / C++ / MFC question

  • CTreeCtrl question
    V Vu Nguyen

    Hi all! I have a tree in a dialog. The dialog has other controls on it also. When I select a branch in my tree, the branch changes color (it's highlighted). If click on different control, say a button outside the tree, then the branch change color back to before it was selected(it's not highlighted any more). How do I keep its highlighted color when the tree looses focus? Thank You Vu vucsuf

    C / C++ / MFC question data-structures

  • problem with CTreeCtrl::GetSelectedItem()
    V Vu Nguyen

    The function GetSelectedItem() is fine. The problem is how I used it. I called it in my OnClick event. This function does not work correctly with onClick event. IT does work fine with OnSelChanged event. I still don't have a good explaination on this issue. Does anyone know? Vu vucsuf

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

  • problem with CTreeCtrl::GetSelectedItem()
    V Vu Nguyen

    Hi all! does any one ever have problems with CTreeCtrl::GetSelectedItem() function? I try to use this function to obtain the handle to the selected node in my tree. However, this function keeps returning me a null handle or wrong handle. Please advise if you have anything to say Any help is really appreciated. Thank You Vu vucsuf

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

  • CTreeCtrl Help Please!
    V Vu Nguyen

    Hi There! Thank you for your help. The problem I have is different. I have a tree structure in the background. I then use SetItemData() to hook each node to a node in my backGround tree. When a node of CTreeCtrl is clicked, I display the coresponding node data in my backGround Tree. In the OnClick() event, I need to get the handle to the node that is selected. The problem I am having is that getSelectedItem() returns NULL at the beginning. After a few clicks, it seems to give me correct handle. I don't know if the search process is too slow or because the SetItemData screw me up. Do you have any clue? Thanks Vu vucsuf

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

  • CTreeCtrl Help Please!
    V Vu Nguyen

    Hi all! I made a tree in my dialog. I successfully inserted a few nodes to the tree. The problems arise when I try to access the node that is being selected. I always get a NULL pointer when I try to get the handle to the selected node. Can any one tell me what I miss? When I insert the nodes, I ignore the *hItem* entry. Is it the cause, if so , how do you fix this? Here is what I did. I used 2 ways and they both give me a null pointer return: void CMyDlg::OnClickTreeview(NMHDR* pNMHDR, LRESULT* pResult) { NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR; HTREEITEM hSelectedNode = pNMTreeView->itemNew.hItem; //get the handle to the selected node if (!hSelectedNode) AfxMessageBox("fail to get the handle"); else AfxMessageBox("Get the handle OK"); } //***************************** another way is: CTreeCtrl * pTree = (CTreeCtrl*) GetDlgItem(IDC_TREE); HTREEITEM hSelectedNode = pTree->GetSelectedItem(); //******************************* Thank You Vu vucsuf

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

  • How can I get a controls HWND ?
    V Vu Nguyen

    Hi Gregor Mitsch! do you know how to use this function bellow? I found it in the sdk, but fail to use it. Basically, I have 2 dialog. I need to change a value of an edit box on the second dialog, when a button on the first dialog is clicked. //here is the function prototype HWND GetDlgItem( HWND hDlg, // handle to dialog box int nIDDlgItem // control identifier ); Thank You Vu vucsuf

    C / C++ / MFC question

  • Mouse Cursor Control
    V Vu Nguyen

    Hi all! How we change the mouse cursor to a glass hour and turn it back to normal? There got to be an easy way to show busy and normal status right? Thank You Vu vucsuf

    C / C++ / MFC question

  • add file to project problem.
    V Vu Nguyen

    Hi all! I made a dialog base application and wanted to use a class I wrote before. I copied the header file and the implementation file to the project folder and use "add files to project" option to add these 2 files. These 2 files are actually working files. However, when I tried to recompile the project, it kept giving me this error. ------Configuration: MyProject - Win32 Release---------- Compiling... controllerList.cpp D:\MyProject\MyPoint.cpp(188) : fatal error C1010: unexpected end of file while looking for precompiled header directive Error executing cl.exe. Does any one know what is wrong here? Thank You Vu The class is very simple. If you need to have a look, here it is: //--------------------- myPoint.h //--------------------- #ifndef MYPOINT_H #define MYPOINT_H class MyPoint { private: int x,y; public: MyPoint(); ~MyPoint(); void setPoint(int,int); int getX(); int getY(); }; #endif //--------------------- myPoint.cpp //--------------------- #include "MyPoint.h" MyPoint::MyPoint() { x= 0; y=0; } MyPoint::~MyPoint() { x=-1; y=-1; } int MyPoint::getX() { return x; } int MyPoint::getY() { return y; } void MyPoint::setPoint(int x1,int y1) { x= x1; y = y1; } vucsuf

    C / C++ / MFC help question c++ announcement workspace

  • CTreeCtrl Question
    V Vu Nguyen

    Hi all! When a branch is clicked, how do I retrieve the information of its parent and grandParent? I have not been able to find help in GetParent()and GetParentItem() in the msdn (the help is confusing.) Thank you Vu vucsuf

    C / C++ / MFC question help

  • icon topic. please help
    V Vu Nguyen

    Hi all! I use appWizard to make a dialog base program. the default icon for my program will then be the MFC icon. I have a nice (32 X 32) icon file, and want to use it instead. the problem is when I imported this icon into the resource, the size becomes 16 X 16. This make the picture look very ugly. Besides this problem, was another one. What I did to change the icon was I changed the line: //m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); with this line bellow: m_hIcon = AfxGetApp()->LoadIcon(IDI_MY_LOGO); after doing this, my icon was still not visible. I had to delete the MFC icon from the resource to make mine work. Can someone please tell me how to change icon the proper way and how to load 32X32 icons Thank you very much Vu vucsuf

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

  • The pow function for integers
    V Vu Nguyen

    This is right out of the MSDN. //----------------------------- pow template complex pow(const complex& x, int y); template complex pow(const complex& x, const T& y); template complex pow(const complex& x, const complex& y); template complex pow(const T& x, const complex& y); The functions each effectively convert both operands to the return type, then return the converted x to the power y. The branch cut for x is along the negative real axis. //------------------------------ Vu vucsuf

    C / C++ / MFC question learning

  • font compatibility
    V Vu Nguyen

    Hi all! I made an simple application on my computer which uses "small font"; When I bring this program to a computer that uses large font, some buttons are missing. and some buttons with long caption does not display the caption correctly. Is there a way to avoid this problem. I am thinking of choosing a font that is not true type, so it won't grow or shrink with windows, but not sure if it will work. Can we detect windows' font size and change dynamically? Thanks Vu vucsuf

    C / C++ / MFC help question

  • CComboBox
    V Vu Nguyen

    Hi all! Let's say I have 5 combo boxes in 1 dialog box. Instead of having 5 different functions to control the OnSelChange() events of those combo boxes, can I just have 1 function to handle all 5 combo boxes? I guess what I am asking is that if there exists a function call so that you can tell which one sends the request. Thank You Vu vucsuf

    C / C++ / MFC question

  • Tree Control
    V Vu Nguyen

    Thanks! Vu vucsuf

    C / C++ / MFC data-structures

  • Tree control in a dialog
    V Vu Nguyen

    do you have any sample? Thanks Vu vucsuf

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