|
Hi all,
I just want to change the mouse cursor of the entire SDI to special (custom) cursor.
I tried a lot of thing, but it doesnt work. Any ideas?
Thanks,
Paul
|
|
|
|
|
Hi
1)Override OnSetCursor of CView
2)Add ::SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
3)Remove the base class call CView::OnSetCursor
4)Add return TRUE;
rgds ...mil10
|
|
|
|
|
Hi,
I'm interested in porting some mac c++ code to PC. I use al lot of heavy vector math. There are, probably, libraries for this. But how do you use them all, so you don't have to create new applications or new code for every processor? (p3, p4, athlon, athlon xp, etc.)
Does anyone know if there are templates, macros or something for this?
I just looked at OptiVec (http://www.optivec.com/), does anyone have some experience with this?
Great to hear something, some pointers/url/etc,
Best Regards,
Aram
|
|
|
|
|
I can't understand how C++ vector math can be different under different processors.
Ant.
|
|
|
|
|
The only difference could be when you use SIMD instructions.
Don't try it, just do it!
|
|
|
|
|
OK, I'll put it like this.
I'm using SIMD instructions, are there some libaries which will convert my high-level code to the proper (processor dependent) low-level machine code, in order to get the fastest vector math possible on every PC processor?
Or do I need to build this in my self, checking which processor and then applying the right optimized vector code for that one?
what about www.optivec.com, could this be where I am looking for?
thanks!
|
|
|
|
|
Hi,
Does someone knows how to make a subst programmaticaly in c++ under WNT4 ?
Thanks
|
|
|
|
|
I've not ever used the DOS subst command, but are you needing WNetAddConnection() , or maybe WNetUseConnection() ?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I was talking about the subst.exe command.
I had a response : it's the DefineDosDevice(...) function.
Thanks
|
|
|
|
|
how to detect the change in the address bar of IE from VC++ program.
|
|
|
|
|
May be BHO can give you more control. For capturing that..
greatest thing is to do wot others think you cant suhredayan@omniquad.com>
messenger :suhredayan@hotmail.com
|
|
|
|
|
|
how to monitor new generated process from vc++ program
|
|
|
|
|
|
how do i set the code so that the .exe file will have the icon instead of the MFC icon?
|
|
|
|
|
go into the "Resource View" tab of your project and change both IDR_MAINFRAME icons to whatever icons you want
|
|
|
|
|
i did that but that only show in the title bar of the program, not on the .exe file that list under windows explorer.
|
|
|
|
|
Did you change them both ?
BTW - there is an MSDN article on this subject also.
__________________________________________
a two cent stamp short of going postal.
|
|
|
|
|
Hi
go to Resource View
Click ICOn
click IDR_MAINFRAME icon
Set the icon say your to both
small (16 * 16)
and Standard(32 * 32)
from the combo box in resource views side view above icon display
|
|
|
|
|
Oh, i see. never know there a combo box there. thank you!
|
|
|
|
|
The easiest way is to replace the .ico file(s) in the Res folder.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
hi!
i have created three splitter windows like microsoft outlook in MFC SDI application. The splitter windows are created in OnCreateClient() function of main frame. Now i want to hide and show the left and bottom window on some events dynamically. I have tried to use deleterow() type of functions but it is giving exception.
kindly tell me what to do? and how to resolve this issue?
The code for creating splitter windows is posted below for reference
// CODE
if (!m_wndSplitterV.CreateStatic(this,1,2))<br />
return FALSE;<br />
if (!m_wndSplitterV.CreateView (0, 0, RUNTIME_CLASS(CLeftView), CSize(150,150), pContext))<br />
{<br />
m_wndSplitterV.DestroyWindow();<br />
return FALSE;<br />
}<br />
if (!m_wndSplitterH.CreateStatic(& m_wndSplitterV,2,1,WS_CHILD|WS_VISIBLE|WS_BORDER,m_wndSplitterV.IdFromRowCol(0,1))) <br />
{<br />
m_wndSplitterV.DestroyWindow();<br />
return FALSE;<br />
}<br />
<br />
if (!m_wndSplitterH.CreateView(0, 0, RUNTIME_CLASS(CSCR1View), CSize(500,500 ), pContext)|| <br />
!m_wndSplitterH.CreateView(1, 0, RUNTIME_CLASS(CLowerView), CSize(0, 0), pContext))<br />
{<br />
m_wndSplitterV.DestroyWindow();<br />
return FALSE;<br />
}
regards
fatima
|
|
|
|
|
There's at least one article here at CP that shows how to use CSplitterWnd with changeable views. Unlike other implementations that destroy and recreate the views as necessary, this one basically keeps them in a list of some sort.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi
I want to convert the text into transparent bitmap. How this can be done?
Regards
Neha
|
|
|
|
|
The wording of you question needs work, but here is what you need.
SetBkMode(TRANSPARENT); (the text is drawn without drawing background).
If you need to be able to move the text around via draging then you will have to create a compatible bitmap of the appropriate size and draw the text on it then drag the bitmap around on top of whatever bitmap you are placing it on. In which case you will need to use the functions: GetTextExtent (to determine the size of the bitmap to create before drawing to it) and TransparentBlt (NT/Windows 2000) or some other method for drawing doing transparent blits. An example of one way to do transparent blits is in the code provided in CDibData and another in the MSDN library.
Good luck!
INTP
|
|
|
|