|
Hi,
for enum printers use EnumPrinters
and I think NetUserEnum
-- modified at 23:56 Monday 13th March, 2006
|
|
|
|
|
r u sure that these functions are uses active directory?
|
|
|
|
|
|
this seems to be fine for Users . What about printers?
|
|
|
|
|
i want to add a new button on title bar like minimize or maximize but its functionality will be diffrent.
Bankey Khandelwal
Software Engineer
|
|
|
|
|
|
thank you.
Bankey Khandelwal
Software Engineer
|
|
|
|
|
hello sir,
i have successfully create buttons on title bar but i am not able to understand that how to handle message on these buttons.
please reply me.
Bankey
Bankey Khandelwal
Software Engineer
|
|
|
|
|
I think
ON_NOTIFY(NM_DBLCLK, 1, OnBnDblClickedCaptionbn1)
ON_NOTIFY(NM_RCLICK, 1, OnBnRClickedCaptionbn1)
ON_NOTIFY(NM_CLICK, 2, OnBnClickedCaptionbn2)
|
|
|
|
|
hello sir,
i have handle messages on these buttons but now problem is that,
in my application i am using time when i stop timer then message on these custom button functions properly but when i start timer they does not work so
for this what can i do.
Bankey Khandelwal
Software Engineer
|
|
|
|
|
Can you post a sample that shows the problem?
|
|
|
|
|
i am setting timer on mouse move function like that
void CShow_ImageDlg::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CRect rect; // Get the bounds of the control (just the client area)
GetClientRect(rect);
bool WasIn=false; // Check the mouse is inside the control
if(rect.PtInRect(point))
{
if(!WasIn)
{ // This is the OnMouseEnter area
KillTimer(1);
SetCapture();
}
else
SetWindowText("Moved Again"); // This else wouldn't normally be used.
WasIn=true;
}
else
{ //This is the OnMouseLeave area:
SetTimer(1,100,0);
ReleaseCapture();
WasIn=false;
}
//TrackMouseEvent( LPTRACKMOUSEEVENT lpEventTrack);
CDialog::OnMouseMove(nFlags, point);
}
when i stop timer then thses costom button functions properly but i have to use timer.
eg. for custom button function is that:
void CShow_ImageDlg::OnBnClickedClose(NMHDR * pNotifyStruct, LRESULT * result)
{
CPoint pt;
::GetCursorPos(&pt);
PostMessage(WM_SYSCOMMAND,SC_CLOSE,MAKEWORD(pt.x,pt.y));
}
Bankey Khandelwal
Software Engineer
|
|
|
|
|
why setimer in onmousemove and do you need settimer?
|
|
|
|
|
yes i am working on moving pictures thats why i have to use settimer
Bankey Khandelwal
Software Engineer
|
|
|
|
|
|
I think this problem isnt impossible and I suggestion you say this problem to write program
|
|
|
|
|
Hello
As i have studied, WinZip is using LZW compression algorithm to compress files. In this algorithm, during encoding phase, a table of codes in maitained and these codes are written in a file. This file is .rar file. Am i right?
Now i want to ask does WinZip stores that code table too? I think it should. Can anyone please guide me in this regard?
Thank You
We Believe in Excellence
|
|
|
|
|
Have a look at InfoZip. AFAIK, InfoZip is used both in Winzip and in java.util.zip
InfoZip is free, and available in source code.
http://www.info-zip.org/[^]
|
|
|
|
|
But Kakan!
I just wanted to ask if we have to stores that code table in the file along with encoded information or not?
By the way thanks for the link.
We Believe in Excellence
|
|
|
|
|
One of the features of LZW compression is that you don't need to store the 'dictionary' with the compressed data. It is reconstructed during the decompression process.
Software Zen: delete this;
|
|
|
|
|
Hello friends,
I need help for creating a bitmap using 'CreateBitmap' MFC function.
I have array that contain the rgbquad value of some picture. I have to convert that array to bitmap using CreateBitmap and 'SetBitmapBits'.
replay.
Rahul here
|
|
|
|
|
|
hi,thanks for reply!
i have a project in which , a .bmp file is converted into some different format and now i have to draw a bitmap fromm that pattern. Now i know only pixel positions and rgbquad values of entire bitmap.
plz reply
Rahul here
|
|
|
|
|
BYTE closeBmpBits[] =
{
0xBF,0xA0,
0x1F,0x00,
0x8E,0x20,
0xC4,0x60,
0xE0,0xE0,
0xF1,0xE0,
0xE0,0xE0,
0xC4,0x60,
0x8E,0x20,
0x1F,0x00,
0xBF,0xA0
};
CBitmap bmpClose;
bmpClose.CreateBitmap(11,11,1,1,closeBmpBits); Nibu thomas
Software Developer
|
|
|
|
|
Hi fellows,
I'm launching a program for a PocketPC (Windows Mobile 2003) that requires that every other process (other than system's) finalize.
Now, I know I can use TerminateProcess for finishing them, and OpenProcess for retrieving a HANDLE to such process (this handle will be used with TerminateProcess). The problemo is that OpenProcess requires the ID of the process, and that's unavailable for me.
My question is: is there any way of getting such process' ID? Or is there any way for terminating the processes?
Regards,
Fernando.
A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.
|
|
|
|