|
I have noticed that when a vista theme is active the month calender control always displays in the Segoe font irrelevant of what the dialog font is set to. My program uses Tahoma for all dialogs and I want it to stay that way. If I use a classic theme the theme font is Tahoma and the control displays fine. Using the Aero font it displays with the Segoe font even though the dialog is set to Tahoma! Any ideas on how to force it to the correct font and not the one it feels like?
|
|
|
|
|
this is my repeter code
<asp:Repeater ID="rptrr" runat="server">
<HeaderTemplate>
<table>
<tr>
<th>
Language</th>
<th>
Description</th><th>Title</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<asp:Label runat="server" ID="Label1" Text='<%#DataBinder.Eval(Container, "DataItem.res_Language").ToString() %>' />
</td>
<td>
<asp:Label runat="server" ID="Label2" Text='<%#DataBinder.Eval(Container, "DataItem.res_Description").ToString() %>' />
</td>
<td>
<asp:Label runat="server" ID="Label5" Text='<%#DataBinder.Eval(Container, "DataItem.res_Title").ToString() %>' />
</td>
<td >
<a href="EditResources.aspx?id=<%#DataBinder.Eval(Container, "DataItem.res_ID").ToString() %>">
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/icon_edit.gif" /></a>
</td>
<td >
<asp:Image ID="Image2" runat="server" ImageUrl="~/Images/icon_delete.gif" />
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
please let me know the code to delete a row from the repeater whn im clicking on the image button "delete"
|
|
|
|
|
That has to be the WORST C++ code I've ever seen.
Oh, wait....maybe you wanted the ASP.NET board[^].
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: That has to be the WORST C++ code I've ever seen.
lol
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hi, In some MFC projects I spend quite a lot of time designing a dialog box and I need it in another project I can copy paste class codes but I have to redesign the dialog resource. I tried to copy a text segment that seemed was about the dialog I was interested in(there were a few lines of empty space then IDD_MY_DIALOG_OF_INTEREST and some text and again some lines of empty space) from .rc file of another project to another project but after that the latter project couldn't load any of its resources until I deleted the inserted segment. Is there any way?
regards ,
|
|
|
|
|
I do it this way
1. Copy the RC file from which you want to reuse the dialog to new Project folder
2. Add the copied rc file to your new project.
3. It will show you warning that there can be only one rc active but just say "ok" on it.
4. Now I just open the resource view and drag the dialogs or resources that you want from copied rc file to the new projects file.
5. After you are done just remove the copied rc file from the project.
I hope it helps. I do this way because i don't have to bother about the formatting in rc file.
Regards,
Sandip.
|
|
|
|
|
i published above on my programmig tips site with your name offcourse. hope this doesn't present any problem !
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
Of course not Alok.
Thanks.
Regards,
Sandip.
|
|
|
|
|
Hi,
I want to change windows language in the code.How can I do that if that is possible? I wrote this code but I don't know if it should cahnge the language:
WORD lang = MAKELANGID(LANG_ENGLISH,SUBLANG_NEUTRAL);
DWORD LANGUAGE = MAKELCID(lang,SORT_DEFAULT);
ConvertDefaultLocale(LANGUAGE);
Thanks,
ibrahim
|
|
|
|
|
iayd wrote: I wrote this code but I don't know if it should cahnge the language:
Then why did you write it, if you didn't know what this would do...
iayd wrote: How can I do that if that is possible?
You didn't try to bother about gathering the information on how to achieve this.
iayd wrote: ConvertDefaultLocale(LANGUAGE);
The ConvertDefaultLocale function converts a default locale value to an actual locale identifier.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Do you have any helpful answer?
|
|
|
|
|
iayd wrote: Do you have any helpful answer?
You can go to my profile and see the usefulness of the posts. not many, but you will find places where my answers helped.
I could have helped you only if I understood your problem correctly. Don't you think that with the information you provide it would be difficult to get the answer?
The usefulness of the answer comes into picture, it is directly proportional to the complexity and explanation of the problem in your query.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
modified on Thursday, August 14, 2008 8:13 AM
|
|
|
|
|
If i am not mistaken i am reading your question for 4th or 5th time
you have some problem with showing something in Arabic language rite.
if some one here had an answer you would have got it in 1st post or 2nd surely.
I am not sure if it will help you but, There are some good localization articles here on CP, I dont know whether you have seen them.
Here are few of them.
http://www.codeproject.com/KB/locale/MultiLangSupportMFCExtDLL.aspx[^]
http://www.codeproject.com/KB/locale/multilingual.aspx[^]
I hope it helps. and while posting please frame your query properly also with the background about what have you done so far it will help you in getting proper answer.
All the best
Regards,
Sandip.
|
|
|
|
|
Yes I wrote similar questions but I coudn't get an answer.I am suprising to this because I asked several hard questions according to me to this forum and I got good answers until now.so I thought that the experts on visual c++ didn't see my question.But maybe I should try some other ways.
Thanks
|
|
|
|
|
iayd wrote: ...I asked several hard questions according to me to this forum and I got good answers until now.so I thought that the experts on visual c++ didn't see my question.But maybe I should try some other ways.
Did you ever stop to think for a moment that those "hard" questions were: 1) not hard at all, or 2) posted at just the right time as to be seen by the majority? Posts go unanswered for many reasons.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
iayd wrote: I want to change windows language in the code
Not sure what you mean by "change windows language". Do you want to change the system locale, user locale, input locale, thread locale or UI language?
Basically, you can programatically change only the thread locale, and for that you need to call SetThreadLocale function. The thread locale determines things like formatting of dates and currency for the thread.
|
|
|
|
|
Have you tried SetThreadLocale() ?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I tried that.But it doesn't change the language.I want that when I achieve to change the language, I would be able to write in arabic to an editbox after I changed the language from english to arabic.I can do that manually by changing the language of windows by tabbing to alt + shift.
Thanks
|
|
|
|
|
iayd wrote: I would be able to write in arabic to an editbox after I changed the language from english to arabic.I can do that manually by changing the language of windows by tabbing to alt + shift.
How about ActivateKeyboardLayout()[^] function?
|
|
|
|
|
Thanks Nemanja.
That solved my problem.
|
|
|
|
|
cl.exe /Oxs /MT /GS ComponentCheck.cpp advapi32.lib
I have used this command from here
http://blogs.msdn.com/vsto/archive/2008/05/08/adding-the-office-primary-interop-assemblies-as-a-prerequisite-in-your-clickonce-installer-mary-lee.aspx[^]
but when i run the command it gives error
cannot open include file 'windows.h' : no such file or directory
how can i solve it
|
|
|
|
|
You probably did not set up your environment variables. There should be a batch file in your Visual Studio directory that you have to run first.
|
|
|
|
|
I Started a thread and wait for the thread to complete, and mean while callin DoEvents, since UI is getting frized even
the operation is performed in separted thread. WaitForSingleObject and the below code is not waiting till the completion of
the thread.
hThread=(HANDLE)_beginthreadex(0,0,WorkerThread,(void*) _param,0,0);
GetExitCodeThread(hThread,exitCode);
while(exitCode!=0)
{
DoEvents9();
GetExitCodeThread(hThread,exitCode);
modified on Thursday, August 14, 2008 6:46 AM
|
|
|
|
|
ptr_Electron wrote: WaitForSingleObject doesn't work for waiting till the completion of the Thread
Yes, it does.
If you get stuck inside the call to ::WaitForSingleObject() it is due to the fact that the thread you're waiting for has not finished yet.
The presence of a call to AfxGetApp() , even though it's currently out-commented, suggests that you're using the MFC framework. If you're creating a thread that is supposed to work with the MFC framework you have to use AfxBeginThread() . The fact that you're not using AfxBeginThread() to start your thread could be what's causing the thread to not finish.
I strongly advise you to read this excellent article[^] before you continue.
Run your app in debug mode and put a breakpoint inside the thread controlling function to see what prevents it from finishing.
Also get rid of this polling technique (DoEvents), it doesn't belong in an event driving OS environment like windows. You should stick to the ::WaitForSingleObject() concept.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
I would like to know if it's possible in any way to hide a program exe from the process list....PLZ hele me
|
|
|
|