|
Thanks, Michael pal!
But in my example, LeaveCriticalSection() are
called before EnterCriticalSection().
I think from your explanation, EnterCriticalSection()
should be called before LeaveCriticalSection().
Thanks in advance,
George
|
|
|
|
|
George2 wrote:
I think from your explanation, EnterCriticalSection()
should be called before LeaveCriticalSection().
That's right.
--Mike--
Looks like I picked the wrong week to stop sniffing glue.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Thanks, Michael pal!
The codes are taken from Apple's DSS Project,
it is an open source project. In the project,
LeaveCriticalSection() is called before
EnterCriticalSection().
I can give you all the source codes(not too
long). How can I give it to you?
Thanks in advance,
George
|
|
|
|
|
Hi,
can I switch off this new (or strange animated) listbox scrolling in XP? When I scroll with mousewheel while not being over dialog the scrolling is somehow "special" animated?
Is there an explanation when & why this happens... or how to turn off for a listbox?
Thanks
|
|
|
|
|
Use Tweak UI, or My computer-> Propreties-> Performance settings->, then uncheck the visual effects you don't want.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
can I disable this effect programmatically for a single listbox (in my application)?
|
|
|
|
|
I don't think so, the smooth-scrolling is a system-wide setting.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
|
Dear all,
I have created a button in IE 5.5 ToolBar(Tool Band concept).then I have created(manually) a registry named as
ToolBand1 under HKEY_LOCAL_MACHINE/Software/ToolBand1.
If I execute that application(VC++),button name to be changed as ToolBand1 in IE.
How to change it through SDK codings?.
Pls help me...
Thanks for viewing this.Please help me.
|
|
|
|
|
is there any way to change the BackGround Color of a Dialog in a SDI project ?
thnx
-=Ehsan-de-Burge=-
|
|
|
|
|
void SetDialogBkColor( COLORREF clrCtlBk = RGB(192, 192, 192), COLORREF clrCtlText = RGB(0, 0, 0) ); Make a call to this function in the InitInstance function of your project.
-Dominik
|
|
|
|
|
|
unbelievable
thats the EXACT soloution.
thanks mr nishant
-=Ehsan-de-Burge=-
|
|
|
|
|
CBitmap mainBitmap;
int nX1=mainBitmap.LoadBitmap("C:\\a.bmp");
"mainBitmap.LoadBitmap" return value is 0, means this function is not working well.
Can u tell me from where i wrong.?
if i use BitmapID like IDD_BITMAP, then LoadBitmap works well. but if i give the file name then it not works well.
Actually i want to load a bitmap, but VC Bitmap drawing editor did not supports all the wanted color. so i made a bitmap in paint brush and now i want to load it.
waiting for the answer
|
|
|
|
|
I assume you working in MFC. Her Loadbitmap is declared as follow...
BOOL LoadBitmap(
LPCTSTR lpszResourceName
);
BOOL LoadBitmap(
UINT nIDResource
);
Both tis function asume a resource ID. This resource ID can be a textvalue or UINT value.
To load a bitmap from a file you can just call Win32 LoadBitmap API function (or LoadImage). On success then you attach it to the the CBitamp object.
|
|
|
|
|
I have too checked what u say, but no progress
HBITMAP hBitmap=LoadBitmap(AfxGetApp()->m_hInstance,"C:\\a.bmp");
int nX=GetLastError();
return value is 1814, means "The specified resource name cannot be found in the image file. "
Although file is present at the required address.
any help ?
|
|
|
|
|
Try...
HANDLE LoadImage(
HINSTANCE hinst, // handle to instance
LPCTSTR lpszName, // image to load
UINT uType, // image type
int cxDesired, // desired width
int cyDesired, // desired height
UINT fuLoad // load options
);
and set the hinst to NULL and lpszName to the filname you load,uType to IMAGE_BITMAP, fuLoad to LR_LOADFROMFILE. For other parameter and options look it up in MSDN. On success attach it (cast from HANDLE to HBITMAP).
|
|
|
|
|
now it works according to my expectation.
thanks a lot....
|
|
|
|
|
CBitmap::LoadBitmap() converts the bitmap to the screen's bit depth therefore if you use CBitmap::LoadBitmap() to load the bitmap, the colors
will be reduced to the bit depth of the main screen and you won't
be able to access the pixels directly. To avoid these problems,
load the bitmap as a DIBSection instead and attach the DIBSection to the CBitmap.
|
|
|
|
|
hi i want to use a Picture Control in my project, So i creat a Dialog Box (IDD_DLG) and then i creat a Class for it (Cdlg) then i put a Picture Control on it. and i add a member variable : (pic1)
here is my code :
Cdlg * m_p = new Cdlg();<br />
CImage m;<br />
m.LoadFromResource(AfxGetInstanceHandle(),IDB_BACK1);<br />
<br />
m_p->pic1.SetBitmap((HBITMAP)m);<br />
m_p->pic1.Invalidate();<br />
m_p->ShowWindow(SW_SHOW);
but after running my program nothing Shown in my Control. What's wrong with my code ?
thanx
-=Ehsan-de-Burge=-
|
|
|
|
|
I am playing Enhanced MetaFile.How to scaling and stretch the Enhanced MetaFile?
Please give code
|
|
|
|
|
I want to remote my program using another program under Windows , like ARexx on Amiga if anyone remembers
How is it possible?
Thanks,
|
|
|
|
|
Add (dual or IDispatch-based) COM-objects to your app, exposing the functions you want to script.
Then take a look at IActiveScript. It's not that hard to use once you get the concept and there
are a bunch of samples floating around the Internet...
Good luck!
"Well I'm just a hard working corporate slave, my mind should hate what my body does crave.
Well I'm just a humble corporate slave, driving myself into a corporate grave"
Corporate Slave, SNOG
|
|
|
|
|
hello
i'm working with wininet and i want to get the header of http querries.
i can get the html source code, but no the header.
thx
|
|
|
|
|
Isn't that how it's supposed to work?
If you want the header also, perhaps you should instead use plain sockets.
|
|
|
|