|
MOUSEHOOKSTRUCT *pMH=(MOUSEHOOKSTRUCT*)lParam;
|
|
|
|
|
thanks it works
Tasleem Arif
|
|
|
|
|
friends pls send some sample codes using the API ImpersonateLoggedOnUser().
This is for Win2K.
thanks..
..shibu.
-- modified at 5:42 Friday 7th July, 2006
|
|
|
|
|
See here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
plz tell me
how to get the selected item from listbox.
|
|
|
|
|
m_List.GetText(m_List.GetCurSel(), buffer);
venu
|
|
|
|
|
hello thanx
for ur reply..
but i want to do one thing more
actaully i'm adding string into the listbox by loop.
i want to add one image to left of the string..how can i do it.
thanx.
|
|
|
|
|
aavesh wrote: i want to add one image to left of the string..how can i do it.
Use a list control (with the LVS_REPORT style) instead of a listbox.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi i have issue that i created one dialog as CGraphconf and then i invoke this dialog by using button.It works properly and i configured the things.I have 2 more dialogs of this kind.So, i planned to combine these three in to propertypage.So, i did.But assertion error occurs in DoModal() of propertySheet class.
Just i commented all the things in OnInitDialog() in CGraphconf.
Then it works properly.When i remove this comments it again give assertion error.BOOL CGraphPageConf::OnInitDialog()
{
CPropertyPage::OnInitDialog();
CString GStr;
CComboBox cb1,*cb2,*cb3;
cb1 = (CComboBox*)GetDlgItem(IDC_BOXDETAIL1);
cb2 = (CComboBox*)GetDlgItem(IDC_BOXDETAIL2);
cb3 = (CComboBox*)GetDlgItem(IDC_BOXDETAIL3);
GStr="EMPTY";
cb1->AddString(GStr); cb2->AddString(GStr);
cb3->AddString(GStr);
ReadGraphicsPageConfigFile();
if(goGroupList.IsEmpty())
ReadGroupDataBase();
if(OTrendList.IsEmpty())
ReadTrendDataBase();
POSITION Pos=goGroupList.GetHeadPosition();
while(Pos)
{
GStr.Format("GROUP%02d",((CGroupInfo *)goGroupList.GetAt(Pos))->GetGroupNo());
cb1->AddString(GStr);
cb2->AddString(GStr);
cb3->AddString(GStr); goGroupList.GetNext(Pos);
}
Pos=OTrendList.GetHeadPosition();
while(Pos)
{
GStr.Format("TREND%02d",((CTrendInfo *)OTrendList.GetAt(Pos))->GetPageNo());
cb1->AddString(GStr);
cb2->AddString(GStr);
cb3->AddString(GStr); OTrendList.GetNext(Pos);
}
return TRUE; }
This is that OnInitDialog() function in my dialog.
|
|
|
|
|
When you get the assertion, look at the stack trace and see which line in your code is causing it.
|
|
|
|
|
CGraphconf
You must change style of template Dialog is Child
example:
class Yourclass: public CPropertyPage
{
DECLARE_DYNCREATE(CQuanLy)
// Construction
public:
enum { IDD = IDD_DIALOG1};
....
}
Properties of IDD_DIALOG1, in Style is Child.
Huynhnb
.: Your success is also me :.
|
|
|
|
|
Hello all,
after reading a file from an usb stick in my win2000 application, it is
impossible to remove / eject the stick via left click on the systray icon.
The file handle for reading is closed, but as i see in task manager, lots of
handles are opened on the way to the read.
I use Windows 2000 and Visual C++ 6.0.
Who knows help?
thx in advance!
|
|
|
|
|
oh, i forgot to mention:
after closing the app, the stick can be removed as ever. The problem only
exists as long as the app runs.
|
|
|
|
|
Hmm. Are you using something like a file open dialog to select the file, or is the path passed some other way (hardcoded, command line param, etc)?
It's possible the removal fails because the app has the stick as a current directory.
Steve S
Developer for hire
|
|
|
|
|
yes, i used a file dialog!
Thank you very much, i will try out, but i think thats the solution!
|
|
|
|
|
I am writing a C++ class. In the constructor I create a WNDCLASSEX WndClsEx structure. I want to pass a method of the class as a parameter to the WndClsEx.lpfnWndProc function (WndClsEx.lpfnWndProc = MyWindowProc;). The compiler gives me an error. Do you know how I can solve the problem?
Thank you!
modified 9-Mar-17 17:18pm.
|
|
|
|
|
|
The error I get is:
error C2440: '=' : cannot convert from 'long (__stdcall CDrawingControl::*)(struct HWND__ *,unsigned int,unsigned int,long)' to 'long (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
Thank you!
modified 9-Mar-17 17:17pm.
|
|
|
|
|
how did u declared the "MyWindowProc" funtion?
nave
|
|
|
|
|
Daniel Kanev wrote:
error C2440: '=' : cannot convert from 'long (__stdcall CDrawingControl::*)(struct HWND__ *,unsigned int,unsigned int,long)' to 'long (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
add STATIC in front of that function!
"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 works fine, thanks!
modified 9-Mar-17 17:16pm.
|
|
|
|
|
Is the method in the class (MyWindowProc) a static method? If not you have a mismatched calling convention.
|
|
|
|
|
It works, thank you!
modified 9-Mar-17 17:17pm.
|
|
|
|
|
See here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
How do I set up a two way communication between two classes?
Lets say I have Class A and Class B . Now, Class A must be able to call functions of Class B and Class B must be able to call functions of Class A .
Is it possible?
---
Hakuna-Matada
It means no worries for the rest of your days...
It's our problem free, Philosophy
<marquee behavior="alternate" scrollamount="5" scrolldelay="50">
|
|
|
|