Forum: C++ Dec 1st, 2008 |
| Replies: 0 Views: 543 Hi All,
i am using MSFlexGrid in my project , i have added the click event for the Grid. Basic operation of grid is when ever any one clicks on any of the cell i will create a combo box... |
Forum: C++ Dec 1st, 2008 |
| Replies: 0 Views: 552 Hi All,
I have added context menu for my tree view control,
i have enabled the context menu only for right click , Can any one tell me how to generate the context menu by key board.... |
Forum: C++ Nov 30th, 2008 |
| Replies: 2 Views: 1,210 Finally i found a way...
When ever any over flow occurs a global variable errno get's set to ERANGE so in the code i have made a check like this
int ConvertToInt( CString intVal )
{
... |
Forum: C++ Nov 30th, 2008 |
| Replies: 2 Views: 1,210 Hi All,
i have a problem in converting CString to Int/Double,
function i am using is _wtoi , _wtof.....
Here if the CSting value has say "12345"
this works perfectly. But if any other value... |
Forum: C++ Nov 27th, 2008 |
| Replies: 3 Views: 983 Actuall i got the solution, there is only one image icon for any project what mistake i did was to just modify only 48 * 48 SIZE image , now i modiffied all the images its working fine.
how did i... |
Forum: C++ Nov 27th, 2008 |
| Replies: 3 Views: 983 Hi ,
I am working with MFC SDI application,
when i open any project [ SDI ] default icon gets loaded
[ ie MFC icon ] , i am not able to change it , even i tried
modifying the icon... |
Forum: C++ Nov 23rd, 2008 |
| Replies: 10 Views: 1,228 What if i run the program again, then again it starts with 1,
so i would get a exception :( |
Forum: C++ Nov 22nd, 2008 |
| Replies: 10 Views: 1,228 i am storing some data in the database,
for tat i always need to send a unique value to it,
if the value already exists then an exception will be thrown.
so when ever i am storing in the db the... |
Forum: C++ Nov 22nd, 2008 |
| Replies: 10 Views: 1,228 Console.WriteLine(System.Guid.NewGuid().ToString()); |
Forum: C++ Nov 22nd, 2008 |
| Replies: 6 Views: 1,183 |
Forum: C++ Nov 22nd, 2008 |
| Replies: 0 Views: 374 Hi,
i am using CMsFlexGrid in my project.
the problem i m facing is the alignment of data
ie when i store integer, double its getting aligned to right
when i store strings its getting... |
Forum: C++ Nov 22nd, 2008 |
| Replies: 10 Views: 1,870 Hope this works....
CMainFrame* pFrame ; // Memeber variable
pFrame = (CMainFrame*) AfxGetMainWnd();
pFrame->GetMenu()
->EnableMenuItem(ID_SORT_MANAGER,MF_GRAYED); |
Forum: C++ Nov 22nd, 2008 |
| Replies: 10 Views: 1,870 use the same logic for disabling the MANAGER menu also, Here u r graying it i think this shud also work for MANAGER. i will also try to write a dummy pgm and test this. |
Forum: C++ Nov 22nd, 2008 |
| Replies: 10 Views: 1,870 So what u r saying is
first the menu looked like this
SORT
|
MANAGER
Here Enabling and Disabling of manager Menu can be done,
now u have updated the manager menu like this : |
Forum: C++ Nov 22nd, 2008 |
| Replies: 10 Views: 1,228 Hi ,
can any one tell me how to generate an unique number ?
this can be done in C# with great ease. But i wonder how to generate tat in c++:ooh: |
Forum: C++ Nov 22nd, 2008 |
| Replies: 2 Views: 305 Hi All,
Ignore the 1st thread :(
i have been working with visual studio 2005 for about 3 months
i thought it would be good to start a thread related to it. i know tat i havent used... |
Forum: C++ Nov 22nd, 2008 |
| Replies: 2 Views: 305 |
Forum: C++ Nov 22nd, 2008 |
| Replies: 10 Views: 1,870 I have faced this problem before....
just go to the menu right click on it ,
say add event handler, Add the ONUpdate
event handler. U will have to enable
Every menu, Sub Menu OnUpdate event... |
Forum: C++ Nov 21st, 2008 |
| Replies: 6 Views: 1,183 Hi,
i just need to know is there any method in MFC / C++
which will do the validation for the entered date.
ie if the date 12/11/2008 is given as input it should return saying the date... |
Forum: C++ Oct 28th, 2008 |
| Replies: 1 Views: 307 got it guyz its solved .......
mtreectrl.setitemimage();
:) |
Forum: C++ Oct 28th, 2008 |
| Replies: 1 Views: 307 Hi ,
i am working with CTreeCtrl,
Here i need to add and remove IMAGE
on the tree item at runtime. ie add an image
only on the particular tree item . How can i do this.
i have tried... |
Forum: C++ Oct 23rd, 2008 |
| Replies: 3 Views: 360 Hi thanks for the reply,
i cant change the settings of the system where i deploy the exe.
what ever i have to do i have to do it programatically.
Adding the dependent dll's in system 32 can be... |
Forum: C++ Oct 23rd, 2008 |
| Replies: 3 Views: 360 Hi
i have developed an MFC sdi application ( C++ ),
when i deploy this application in another machine
the Grid component is not showing up in the UI.
The Grid which is used is... |
Forum: C++ Oct 10th, 2008 |
| Replies: 3 Views: 1,198 I have done the similar thing in MFC ,
we can specify the right click option while tool tip
creation only .
OnContextMenu(CWnd* pWnd, CPoint point)
{
VERIFY(mMainMenu.CreatePopupMenu());... |
Forum: C++ Oct 10th, 2008 |
| Replies: 5 Views: 895 This might help u , i havent used proper variable names but the code works....
just reply me if u dont understand this code :)
//Header file
#include "stdafx.h"
#ifndef ABC
#define ABC
... |
Forum: C++ Oct 9th, 2008 |
| Replies: 6 Views: 529 yeah i am one lazy developer :(
thanks for the reply guys i will surely try out this solution
and get back to u ..... |
Forum: C++ Oct 9th, 2008 |
| Replies: 5 Views: 895 yup...
Struct is also an Data type [ User defined data type]
u can define it where ever u want. the way u use the integer
data type use Struct data type after defining it.
Can u clearly specify u... |
Forum: C++ Oct 9th, 2008 |
| Replies: 6 Views: 529 Thanks for the reply,
but problem is the code size is too huge
its around 10k lines of code, the problem in
the code is dangling pointers [not sure ]. i have a delete operator
for every new... |
Forum: C++ Oct 9th, 2008 |
| Replies: 6 Views: 529 Hi Friends,
Can any tell me a free tool which detects memory leak in C++ code.
to be more specific [ UNMANAGED C++ code ]. i am using some C Structs in my
MFC SDI application, When i... |
Forum: C++ Oct 9th, 2008 |
| Replies: 5 Views: 817 OH GOD.....
One more thing !
i have added the keyboard short cut for Menu1 say ctrl + M,
but how to add short cut like this :
Menu1 :: Alt + M + N..... i have tried adding the ascii and many... |
Forum: C++ Oct 9th, 2008 |
| Replies: 5 Views: 817 Hi Jencas,
i found out the solution :)
IDR_MAINFRAME ACCELERATORS
BEGIN
"P", ID_CREATE_PATIENT, VIRTKEY, CONTROL
"S", ID_CREATE_STUDY, VIRTKEY,... |
Forum: C++ Oct 9th, 2008 |
| Replies: 5 Views: 817 Hi Jencas, Can u explain me wat is accelerator key?
or can u provide me with any link which explains the same.
i just want to have a keyboard short cut for Menu1 ( the keyboard
short cut would... |
Forum: C++ Oct 8th, 2008 |
| Replies: 5 Views: 817 How to add keyboard shortcuts to Menu in an SDI application?
Some of the things that i have tried is :
say Context menu has a sub menu called Menu1 , i have
mentioned it as &Menu1 which makes... |