|
|
I didn't know the tab order controlled the drawing order ?
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining.
Said by Roger Wright about me.
|
|
|
|
|
The tab order is set by moving their order in the rc file, as you've suggested he do.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Oh, ok learn something new everyday,
[embarassed]
I'd always wondered where the Tab order was stored.
[/embarassed]
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining.
Said by Roger Wright about me.
|
|
|
|
|
Colin^Davies wrote:
I didn't know the tab order controlled the drawing order ?
The tab order changes the order in the *.rc files. And for non-tab-stop controls like the static control, it serves as a mechanism by which we can simulate a bring-to-front for dialog controls.
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Colin^Davies wrote:
I didn't know the tab order controlled the drawing order ?
Technically, the tab order is the Z-order of the controls, and that controls the drawing order. (It's also why you can use SetWindowPos() to change the tab order.)
--Mike--
Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Try altering the order it appears in your rc file, if using MFC, or in creation if standard.
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining.
Said by Roger Wright about me.
|
|
|
|
|
I want to mess around with the Linker settings from a Macro, but I can't seem to find the interface to use. Here's what I have now. I can successfully enumerate down and retrieve the release Configuration object. But I don't know where to go from here. Has anybody done something like this before?
Sub SetupRelease()
Dim proj As Project
Dim confs As Configurations
Dim conf As Configuration
Dim linker As VCLinkerTool
For Each proj In Application.Solution.Projects
confs = proj.ConfigurationManager().ConfigurationRow("Release")
For Each conf In confs
' I don't know how to get the VCLinkerTool from here
Next
Next
End Sub
|
|
|
|
|
I have written an handler when the user presses the left mouse button in the list control.
I am doing the following in the handler code
{
Invalidate();
HWND hWnd1 = ::GetDlgItem (m_hWnd,IDC_LIST2);
LPNMITEMACTIVATE temp = (LPNMITEMACTIVATE) pNMHDR;
RECT rect;
//get the row number
nItem = temp->iItem;
..
..
..
}
nItem is having -1 and not a valid row number?
Could anyone tell why it is so.
Thanks
|
|
|
|
|
If you use MFC the GetSelectionMark() returns the zero-based selection mark, or -1 if there is no selection mark. I think your CListCtrl has to be in Report-mode.
Arjan.
|
|
|
|
|
I downloaded a file, and in it was this line:
cs.dwExStyle &= ~WS_EX_CLIENTEDGE;
=============================
Other than noticing the edges of the client area (of the view) did show a 3-dimensional look, it's more of the technical side that I'm interested in finding out.
Specifically, what does the "ones complement" do when combined with the logical AND operator.
Thanks.
William
|
|
|
|
|
~ flips all bits in a variable (0s become 1s and 1s become 0s). As WS_EX_CLIENTEDGE is a value which expressed in binary is all zeros except one bit, ~WS_EX_CLIENTEDGE is all 1s except that bit, which becomes zero. When you bitwise AND this with cs.dwExStyle the result is that all bits of cs.dwExStyle remain unchanged (1 AND x = 1) except that bit which becomes zero (0 AND x = 0). To sum it up, you're setting the specified bit to zero, or (in this context) removing the style "client edge" (in case it was set).
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
OK, let me see if I got this straight. You said, "In this context," I am "removing the style 'client edge' (in case it was set)."
I couldn't have removed it, because when the view got displayed, it had the "client edge" showing. Are you saying that if it were NOT set, coding:
cs.dwExStyle &= ~WS_EX_CLIENTEDGE;
would set it?
Thanks again.
William
|
|
|
|
|
|
Thank you for responding.
My problem is not so much understanding how the various logical operators behave. That part is rather easy. The difficulty for me is with the associating of the various operators with the various styles.
For example, if I had just seen "cs.dwExStyle" and "WS_EX_CLIENTEDGE" separately by themselves, I would not have known that:
cs.dwExStyle &= ~WS_EX_CLIENTEDGE;
is the way they are to be used. The problem with that would be due to a lack of knowledge regarding the bit pattern of the various styles and knowing what logical operator you are to use with them, individually.
Usually if you don't want to use a certain Window or Control style, you simply don't use it. But if you decided to use it, you would simply 'OR' it with the other styles. Simple!!
It is when you get into these exotic usage that I get lost, because I don't know the mask of the style, to let me know what logical operator I am to use in order to turn it on, or off. That's my problem!
William
|
|
|
|
|
That code turns off (sets to zero) the bit represented by WS_EX_CLIENTEDGE , while leaving all other bits as they are.
--Mike--
Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
This is the part that confuses me, because if it turned off the bit represented by WS_EX_CLIENTEDGE (which I'm not disputing), then why did the view show the 3-D look when the client area got displayed?
By turning off the bit, it should have also turned off the 3-D look, but it didn't.
UNLESS, turning off the bit that represents the WS_EX_CLIENTEDGE bit mask, is what caused WS_EX_CLIENTEDGE to get displayed (which sounds a little backward in order to get it right), then I could understand doing it the "upside down" way in order to get it "rightside up" in the end.
Is that what happened?
Thanks again!
William
|
|
|
|
|
WREY wrote:
This is the part that confuses me, because if it turned off the bit represented by WS_EX_CLIENTEDGE (which I'm not disputing), then why did the view show the 3-D look when the client area got displayed?
3D look was provided by parent frame or splitter window. If you leave WS_EX_CLIENTEDGE on view, then you'll get double-3D, which doesn't look good.
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
Cool!!
Thanks!!
William
|
|
|
|
|
Hello there !
How can i perevent to close window when user hit Enter or Escape ???
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Override OnClose , OnOK and OnCancel as follows:
void CYourDlg::OnClose()
{
EndDialog(0);
}
void CYourDlg::OnOK()
{
return;
}
void CYourDlg::OnCancel()
{
return;
}
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hello there,
How can i change the system volume ?
I mean change the volume up and down ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
change the volume up and down
??? What do you mean? Could you put this in another words?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hello dear Joaquín
I'm so sorry for my bad english talking
I mean i want to change the system volume to high abd low !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|