|
You need to add the line "#define ISOLATION_AWARE_ENABLED 1" before including commctrl.h and the resource id for the manifest should have a value of ISOLATIONAWARE_MANIFEST_RESOURCE_ID which basically equates to 2. You can use reshacker to check the manifest has been added to the DLL. This works for my property sheet shell extension which is just another DLL loaded by explorer.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
Awesome! That WORKED! You rock bigtime!!! Thanks a ton!
|
|
|
|
|
hi
I want to create a new desktop under WIN98.I may create a new desktop under win2000 with "createdesktop" API funtion ,under win98 how to do???
c++
|
|
|
|
|
|
I know it don't support ,but how to realize under win98?
c++
|
|
|
|
|
You need to write a completely new Explorer implementation. However, I cannot help you with this any further, as writing this type of implementation would be a huge job.
For an example, see the desktop replacement software called LiteStep. This program is a replacement for the standard Windows Shell (Explorer). Perhaps it has some free source code that will get you started.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
wrong again!
the multiple desktop feature doesn't come from the explorer, it's a system feature coming from the win32 subsystem in kernel.
Don't try it, just do it!
|
|
|
|
|
hi...
i have a problem in invalidating...
below are my codes
void CEditorView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
if( lHint == 1 ) {
//get back the rect
CRect* pRect = ( CRect* ) pHint;
InvalidateRect(pRect);
return;
}
CView::OnUpdate(pSender, lHint, pHint);
}
which are taken from the OnUpdate handler of my View..
the way OnUpdate is called from my DOC is as below :
void CEditorDoc::SetSquareColor(int i, int j, COLORREF color)
{
ASSERT( i >= 0 && i <= GetGridY() && j >= 0 && j <= GetGridX() );
m_clrGrid.At(i, j) = color;
SetModifiedFlag(TRUE);
CRect pRect( 20, -10, 30, -20 );
UpdateAllViews( NULL, 1, ( CObject* )&pRect);
}
THE PROBLEM
the problem arrives when i do InvalidateRect, the rect passed in as parameter is bnot getting invalidated!!
Now, to check if my parameter is wrong i added code in the OnUpdate to draw a rectangle with the same coordinates.
so now the same code above becomes :
void CEditorView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
if( lHint == 1 ) {
//get back the rect
CRect* pRect = ( CRect* ) pHint;
InvalidateRect(pRect);
CBrush brush(RGB(255,166,166));
CBrush* pOldBrush = dc.SelectObject(&brush);
CRect jrtRect(20, -10, 30, -20);
dc.Rectangle(jrtRect);
dc.SelectObject(pOldBrush);
Invalidate();
return;
}
CView::OnUpdate(pSender, lHint, pHint);
}
what i found out that with the above code, a rectange is drawn in the correct place where i wanted to invalidate the rect!!!
but the rectangle apprears and quickly dissapears!!
so now i know that the co-ordinates i supplied witht the invalidateRect were correct...
then why doesnt the area get Invalidated??
any help is deeply appreciated and thank you for your time...
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40
|
|
|
|
|
I am wondering, since u can pass a style LBS_SORT to the listbox when Initalized. But is there a flag that I can pass to SetDlgItemMessage(...) to sort the LB when I push a button ??? I dont want to have to write my own Sorting function to sort strings Alphabetically.
Thanks
|
|
|
|
|
if u set the style it will insert new items in a sorted order
so why would u want to sort it urself?
"there is no spoon" biz stuff about me
|
|
|
|
|
I think what you want is to change the sorting style of the listbox at runtime. Try SetWindowLong(..) in your button handler.
Art
|
|
|
|
|
Exactly thats what I was trying to do at runtime sort the items in the LB.I will try SetWindowsLong(...)
|
|
|
|
|
You can not use SetWindowLong(...)for a list box, causes the program to freeze.
|
|
|
|
|
Don't know why you are getting that.
Here is my code:
----------------------------------
DWORD dwStyle = m_lb1.GetStyle();
dwStyle |= LBS_SORT;
::SetWindowLong(m_lb1.GetSafeHwnd(),GWL_STYLE,dwStyle);
-----------------------------------
A check with spy++ clearly shows the listbox style has changed from no sort to sort. However the sorting operation doesn't occur. Don't know why. Sorry. It doesn't freeze the app though.
Art
|
|
|
|
|
Read this:
http://www.codeproject.com/combobox/recreatelistbox.asp
Art
|
|
|
|
|
Mine does not work either this is my code
-------------------------------------------------------
int x = SetWindowLong(dhwnd,GWL_STYLE,GetWindowLong(dhwnd,GWL_STYLE)|LBS_SORT);
SendDlgItemMessage(dhwnd,IDC_LIST1,LB_RESETCONTENT,0,0);
for(int i=0; i<6; ++i)
SendDlgItemMessage(dhwnd,IDC_LIST1,LB_ADDSTRING,0,(LPARAM)table[i].list);
SendDlgItemMessage(dhwnd,IDC_LIST1,LB_SETCURSEL,0,0);
SetDlgItemText(dhwnd,IDC_EDIT1,table[0].list);
-------------------------------------------------------------------------
I dont think I am getting the handle to the listbox
|
|
|
|
|
I have not explained this very. I created a listbox using the resource editor. The problem is I cant set the style to a LB because the resource editor set all the flags. But I assume u can change the style using SetWindowLong(...) but nothing happens. Is there a way I can get a handle to the listbox. This is win32 and not MFC.
|
|
|
|
|
Is there a util that will do this? Does the Borland free compiler even possibkly know how to read them?
I want to take a project I have and convert it to compile and link using borland's free compiler
It's an SDK, so I'm not concerned w/ MFC
Cheers
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
To my knowledge none of the Borland C++ programs understand visual studio projected/solution files. However, Visual Studio 6.0 has the option to create a make file, which you could modify to work with the Borland compiler.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
do u know how to get character matrix in win and dos?
e.g:
1 character matrix is similar to that:
0000x0000
0000x0000
0000x0000
0000x0000
0000x0000
Thank you!
Hello World!
|
|
|
|
|
char buffer[20];
int iYourNumber = 0;
sprintf( buffer, "%x", s );
Convert it to HEX?
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
In VC6.0,how to change a project from Release to Debug for debuging it?
Thank you very much first!
Rap off for you,for me,for our human.
|
|
|
|
|
Look on the Build toolbar, there's a combo box that says "Win32 Release". Change that to "Win32 Debug"
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber
There is a saying in statistics that a million monkeys pounding on typewriters would eventually create a work of Shakespeare. Thanks to the Internet, we now know that this is not true.
|
|
|
|
|
Right click on the top and make sure that you select:"Build" and then change it in the combo box
|
|
|
|
|
Or if you want to debug in release mode, in your linker option.
Project Setting - Link - check the Generate Debug Info
and
Add #define _DEBUG into your source code.
Sonork 100.41263:Anthony_Yio
|
|
|
|