|
Hello All,
I need to highlight the one of TAB of Tab Control. but TabCtrl_HighlightItem() is not working for me.
Thank You in Advance.
|
|
|
|
|
Sure you don't mean select it, as with TabCtrl_SetCurSel[^]
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thank You 4 Reply my Question.
Yes, i don't want to Select the Tab but only highlight the one of the TAB to indicate that some think is new in that Highlighted TAB.
|
|
|
|
|
zakkas2483 wrote: ...to indicate that some think is new in that Highlighted TAB.
Assuming that TabCtrl_HighlightItem() indeed does not work, how about changing its caption (by appending a '*' character)?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
OK - I see. So...how is TabCtrl_HighlightItem not working for you?
I've added a tab control to a sample project I have> It's MFC, but I've used the TabCtrl_HighlightItem macro to highlight items. Here's the method I have - it reacts to an edit control changing and cycles through the tabs of the control (the current tab index is in tabIdx_), toggling the highlight state.
void CaaaDlg::OnEnChangeEdit1()
{
tabIdx_++;
tabIdx_%=(TabCtrl_GetItemCount(tabs_.m_hWnd));
bool isHighlighted = TCIS_HIGHLIGHTED == tabs_.GetItemState(tabIdx_, TCIS_HIGHLIGHTED);
TabCtrl_HighlightItem(tabs_.m_hWnd, tabIdx_, isHighlighted?FALSE:TRUE);
}
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
hi all,
i have an application in which i have some images in a folder and i need to display these into a List control using imagelist.
i need to display it in a mannner that when the firsttime it read image from a folder then it should first image and should display in list control. and at second time it should read secondimage and add this image in list control and display it in list control and so on.
i dont have any idea how to do it please send a demo project so that i can do it easily
thanking you
|
|
|
|
|
See Thumbnails Viewer using ListCtrl [^].
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi,
I am running a flash activeX in a window in which DirectX is rendering. As DX is drawing on top of flash, it creates a flickering effect where flash is placed (first flash and then DX draw the same area).
As this is a 3D game, ideally I would like to be able to switch between flash and DX seamlessly. So I am able to open and close flash during the game with the same 3d world in the background.
The different options I have tried to allow flash and DX to co-exist:
1. Turning off DX rendering during flash's rendering. This stops 3D rendering and only flash is displayed.
2. Creating a hidden child window and attach flash activeX to that window. Then copying flash's frame using OleDraw on DX surface. Frames are copied fine but the issue here is that flash does not receive windows messages and activeX stops running.
3. Creating a separate pop-up window with flash running inside. This runs fine but flash window is separate from my 3d world.
Unfortunately it seems there is no way to tell flash activeX when to render its frame (maybe WM_PAINT?). Running flash in a hidden window and copying frames is something that gives more options in terms of flash's usage inside the game.
Any ideas on how to achieve seamless flash and DX rendering?
Regards,
Hasan
|
|
|
|
|
I have exported dll functions using one dllexp utility. When I was seeing that, there are two address were given, One is Address and Relative Address. What is these address? Kindly provide me the information.
|
|
|
|
|
RVA – Relative Virtual Address represents a relative address within a file on the disk. When dll is loaded adding this RVA address to base address gives us the actual address of a function in memory.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
I Want to add word behind cursor;
my question is how to get cursor's position,and to add word behind it?
In a Edit-control
e.g.
ABC cursor DEF
i have i button when i click it will add K in cursor
result is :
ABC K cursor DEF
could you help me thank you
|
|
|
|
|
is CharFromPos()[^] helpful
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
I have created a long string to be shown in in a message box (code given below). When I set a break point at the Format function of the string and run the debugger, the break point is diabled with a message "The breakpoint will not be currently hit. No executable code is associated with this line. Possible causes includes: preprocessor directives or compiler/linker optimizations." However, other break points (even set immediately after the Format funtion works. The code I am using is as follows:
CString strMessage;
strMessage.Format(L"A text file containing the boundary detals in the following format may be imported:\n"
L"\nn (Number of boundary points, integer)"
L"\nX_1 (X co-ordinate of first boundary point)"
L"\nY_1 (Y co-ordinate of first boundary point)"
L"\nX_2 (X co-ordinate of second boundary point)"
L"\nY_2 (Y co-ordinate of second boundary point)"
L"\n..."
L"\n..."
L"\n..."
L"\nX_n (X co-ordinate of n\'th boundary point)"
L"\nY_n (Y co-ordinate of n\'th boundary point)\n"
L"\nThe X and Y co-ordinates can be any real values positive, negative or zero\n"
L"\n\nNote: The existing data will be replaced with the content of the text file!"
L"\n\nDo you have a text file in this format and wish to continue?");
if(MessageBox(strMessage,NULL,MB_YESNO|MB_ICONQUESTION)==IDNO)
return;
I am using VS 2008.
Any ideas to solve the problem will be highly helpful for me.
Thanks in advance.
|
|
|
|
|
Are you debugging in "RELEASE" mode?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
I don't think so, because the op wrote: However, other break points (even set immediately after the Format funtion works
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I think it worked for the OP. Someone gave it a 5.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Don't worry, I'll give you a 1 to balance it.
OK, I'm just kidding.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
No - that was me, 'cause it was exactly the answer I would have given
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Rajesh R Subramanian wrote: I don't think so, because the op wrote: However, other break points (even set immediately after the Format funtion works
Debugging in Release mode's a funny thing - breakpoints sometimes work, sometimes don't, you can look at some data, but other items are inaccessible - I saw nothing in the original post that was incompatible with the answer.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
pani68 wrote: other break points (even set immediately after the Format funtion works.
You may set the break point at this line :-
strMessage.Format(L"A text file containing the boundary detals in the following format may be imported:\n"
Change the breakpoint to this line,
L"\n\nDo you have a text file in this format and wish to continue?");
Worked ??
And why so ? lets hope some of Codeproject gods will answer this ...
modified on Friday, May 8, 2009 7:01 AM
|
|
|
|
|
Madhu Nair wrote: Change the breakpoint to this line,
L"\n\nDo you have a text file in this format and wish to continue?");
Worked ??
Yes. It worked. Thank you.
Madhu Nair wrote: And why so ? lets hope some of Codeproject gods will answer this ...
I also hope the mystry to be solved!
|
|
|
|
|
Madhu Nair wrote: You may set the break point at this line :-
strMessage.Format(L"A text file containing the boundary detals in the following format may be imported:\n"
Change the breakpoint to this line,
L"\n\nDo you have a text file in this format and wish to continue?");
Worked ??
It's quite odd that worked - whenever I've put a breakpoint on the first line of a multi-line function call, it's always resolved it to the last line of the call automatically. The only thing I can think of is that the source and the executable have got out of sync somehow, so the line referred to by the source isn't resolvable within the object code.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
pani68 wrote: L"\n\nDo you have a text file in this format and wish to continue?");
The breakpoint must go on this line, as it has the statement-terminating semicolon.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
DavidCrow wrote: The breakpoint must go on this line, as it has the statement-terminating semicolon.
Great answer David!
I have tried the code in OP, it was a strange thing to see that VS 2008 automatically pulls the breakpoint to the end line if we put it in any lines except the first line. I have tried some other multiline functions to recreate this, but VS2008 was clever enough to identify the first line of the statement.
Is that something related to the string which he represented in multiline (not the exact text in OP, any multiline unicode string) ? A bug in VS2008?
modified on Friday, May 8, 2009 12:58 PM
|
|
|
|
|
Hi All,
I'm planning to program a software where the user will be able to change the entire language (panels, error messages,...etc.).
I was thinking about having a 'language' directory where will be stored files (txt, xml?) with different language translations. And always during the application init, the program would read and use preferred 'language pack'.
So here are my questions is:
- is this a good 'method'?
- If yes, what is the best 'language-storable' file format? (plain text, xml,...)
- If not, do you have some other ideas how to solve this?
The software will be quite performance-dependent and reading a file might little slow-down the process.
thank you in advance.....
|
|
|
|