|
I need to add a new message handler for a dialog box... but its giving "Cannot add a new member"...
...
i tried deleting clw file and the rebuliding it.but doesnt work.
Also all my classes are not getting displayed in class wizard.
Plz help me.
Thanks n Advance
|
|
|
|
|
How many controls do you have on the form?
|
|
|
|
|
I think you must add some member in header file , for example : in following
code , when you want add double click to add a new member in dialog, the
"Cannot add new member " message will be occur. please move the
private:
int m_iValue
below the ADX_DATA will be fixed!
// Dialog Data
//{{AFX_DATA(CDlg)
enum { IDD = IDD_DIALOG };
CButton m_ABC;
CRichEditCtrl m_RichEdit;
private:
int m_iValue
//}}AFX_DATA
Also this inidicates that the file is readonly, or that perhaps the various magic comments have
been corrupted
akt
|
|
|
|
|
I think you must add some member in header file , for example : in following
code , when you want add double click to add a new member in dialog, the
"Cannot add new member " message will be occur. please move the
private:
int m_iValue
below the ADX_DATA will be fixed!
// Dialog Data
//{{AFX_DATA(CDlg)
enum { IDD = IDD_DIALOG };
CButton m_ABC;
CRichEditCtrl m_RichEdit;
private:
int m_iValue
//}}AFX_DATA
Also this inidicates that the file is readonly, or that perhaps the various magic comments have
been corrupted
akt
|
|
|
|
|
Thanks 4 that....
but i dont have any member variable of class scope.. so the above doesn't fit the solution.
how to display all classes what i have in ma project in class wizard
Note : All my classes where not created using class wizard
Thanks in Advance.
Regards.
Arshad.
"I am just loving this....."
|
|
|
|
|
You can also declare your variables manualy.
|
|
|
|
|
hello,
I want to create a dynamic Bitmap (size + data), what is the way doing this?
I try to use CreateBitmap without big success.
Thanks.
|
|
|
|
|
Can you more explain about create a dynamic Bitmap
|
|
|
|
|
Please use the following code if u can use MFC.
UINT BITS_IN_A_BYTE = 8;
CBitmap BlankBmp;
BYTE *pbyBits = 0;
SIZE_T nBits;
nBits = m_uImgWidth * m_uImgHeight;
pbyBits = new BYTE[nBits + UNITY];
if( 0 == pbyBits )
{
return;
}
// Fill it with Black RGB values (R=0, G=0, B=0)
ZeroMemory( pbyBits, nBits + UNITY );
BlankBmp.CreateBitmap( m_uImgWidth, m_uImgHeight,
1, BITS_IN_A_BYTE, pbyBits );
delete[] pbyBits;
akt
|
|
|
|
|
Using Win32 APIs or MFC? Do you want a DIB, DDB, or a DIB section?
How many bits per pixel?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
What is the diffrent between the above ?
I need 32 bits per pixel (or 24).
Thanks
|
|
|
|
|
Hi,
I have one application which needs to notified whenever the my windows system was locked or unlocked.
so, can you plz give me the solution for this problem as soon as possible.
Thanks & Regards
swamy
|
|
|
|
|
Hi,
use "WTSRegisterSessionNotification()" to register your window to receive
the notification "WM_WTSSESSION_CHANGE" which has "WTS_SESSION_LOCK" & "WTS_SESSION_UNLOCK" parameter to identify that.
Best Regards
Raj
|
|
|
|
|
Thank U Very Much Raj.. for giving this solution !!
cheers
swamy..
|
|
|
|
|
swamy Narasimha wrote: I have one application which needs to notified whenever the my windows system was locked or unlocked.
Implement the ISensLogon interface. The DisplayLock() and DisplayUnLock() methods are of interest to you.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi,
i am new to dll. i have developed a DLL with menu resources....
i want use that resources, which means if i call any one of the function from my exe ,it should call that DLL.... then particular menu in that DLL have to load in my exe application.....how to do that......?
please if any one know this,reply me...
Thanks in advance
|
|
|
|
|
D.Mani wrote: ,it should call that DLL.... then particular menu in that DLL have to load in my exe application.....how to do that......?
AfxGetResourceHandle, AfxSetResourceHandle and AfxFindResourceHandle
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
how to get GUID or device name for usb device
|
|
|
|
|
prathuraj wrote: how to get GUID or device name for usb device
Can you be specific with your requirement?
Thammadi
|
|
|
|
|
i want to identify the usb drive connected on system.
for every conneted drive i want separate ID .
Now i got same id for all imation drive and same id for kingstone.
|
|
|
|
|
rerewr ;)
|
|
|
|
|
|
jkhasjkhsakjdhaskjlhd l.. is that your language!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
It seems you can speak like him.;P can you translate it.
I could found two words on your message "has","ask".
|
|
|
|
|
Hi,
I have a List control and I have to change the border color of it dynamically such as, on mouse hover, on focus etc. So I handled the WM_NCPAINT and draw the border with my own color. But when I have to change the color, how will I invoke the WM_NCPAINT. Can I send that message directly? Or is there any other functions that invokes this message indireclty?
N.B - I need to paint only the non client area.
Thanks
Naveen
[OpenedFileFinder]
|
|
|
|