|
Hi, I have some doubts about doing a non-standard interface application. I want to do an application like Winamp (with an image in the background). I know how to put this image at background of dialog (bmp image) but i want to erase the background color to make it transparent (for example, do white colour as transparency colour). Does somebody know how to do it easyly? I've found interested Skinnable applications in CodeProject, but I just want to do this in few lines.
Thanks.
|
|
|
|
|
Hi..I think this is the only way..
One thing you can do is load bitmap at runtime & create mask from that using program. Then that means what ever bitmap you provide it get looks like that..
OK! Good Bye
---Sumit Kapoor---
|
|
|
|
|
Thanks Sumit, I think you want to say that I have to apply a Region in my dialog with the form of my bitmap? or something else?
|
|
|
|
|
yes..Dear..
Just apply bitmap at runtime & create region at OnSize() & apply that region at OnPaint()...
this is only source I think..
OK! Good Bye..Keep trying success is just one step ahead..
---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|
|
I have 2 radio button groups within their own group box. The first radio controls in each group has its group property checked. OnInitialUpdate(), the first button in each group is checked by a call to CheckRadioButton as seen below.
CheckRadioButton(Group1Button1, Group1Button3, Group1Button1);
CheckRadioButton(Group2Button1, Group2Button3, Group2Button1);
All is fine and dandy when these buttons are not acting as controls. When they are it causes all sorts of problems. For example, when I click on the second button in either group, a modal dialog appears prompting input. When cancel is clicked, it defaults to the first button through a call to OnGroup1Button1(). Within that function lies CheckRadioButton(Group1Button1, Group1Button3, Group1Button1). When CheckRadioButton is called it clears all the other radio buttons in the other group as well. Another problem that arose was the fact the modal dialog box keeps reappearing when you leave and return to the application.
What could be causing CheckRadioButton to act this way? Any help would be much appreciated.
|
|
|
|
|
Are the IDs of each button contiguous? In other words, do you have something like:
#define GRP1BTN1 100
#define GRP1BTN2 101
#define GRP1BTN3 102
#define GRP2BTN1 200
#define GRP2BTN2 201
#define GRP2BTN3 202 Or are the numbers in some other "random" order?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
That did it. At first I thought the tab order would handle it but I guess it didn't. Thanks a bunch David!
|
|
|
|
|
Methods and macros that rely on contiguous control and command ids lead to unmaintainable code and hard to find run-time errors. They don't pass our code reviews.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi,
The Find window of Visual studio provides now possibility to use regular expressions.
Can anybody help me with an regular expression for the string
if (XX=YY
I would like check all my code for the assignments inside if
The expression shouldn't match to
if (XX==, if (XX>= , if(XX<= and so on
|
|
|
|
|
Set the warning level to 4 and you'll have the compiler issue a warning for each assignement in a conditional statement
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I used the following in VS.NET 2002:
if:b*\(:b*:i:b*\=~(\=).+\)
Software Zen: delete this;
|
|
|
|
|
Thank you very much, Gary
|
|
|
|
|
I have no idea what the expression "if(XX==YY" is suppose to mean. It appears you are looking for a pclint type program to verify that your code is correct.
Modern complires are great: write some code, compile code, look at warnings
and error. Then correct program errors or warnings (if you know what caused them), that is all.
INTP
|
|
|
|
|
Hi,
Thanks for this advices. But I needed a regular expression. The reason is, that I have a bunch of files which are from other providers. And they produce many warnings(which are mostly ok).
|
|
|
|
|
Is an edit control in an HTML page displayed in a browser the same as a CEdit ? If so, is it possible to get the HWND of the one with focus, if I know the HWND of the IE instance (i.e. the Internet Explorer_Server window hosted in IE)?
(I'm trying to figure out how to programatically paste content into the currently selected edit field in an HTML page.)
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
u can use EnumWindows() to get HWND of any windows, but i think you can not replace text on html page, SetWindowTest() is not available except you just need plain text (no colors, fonts etc). to do that, your program must have rights to access IE - only IE itself has rights (same thread) to do that.
includeh10
|
|
|
|
|
Actually you can modify the text of a window belonging to a separate thread by using a hook - this[^] article showed me how to do it. So my problem has boiled down to finding the target window handle.
[edit]
Btw, I don't want to change the HTML - I want to paste text into (the currently selected) edit control on an HTML page.
[/edit]
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
it will cause big trouble, if u don't beleive, u can try
includeh10
|
|
|
|
|
I pasted the text into the clipboard and fired a Ctrl/V to IE. Works great! (I'm not sending a WM_SETTEXT ).
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
|
Ravi Bhavnani wrote:
Is an edit control in an HTML page displayed in a browser the same as a CEdit?
Hi Ravi,
I don't think so. I doubt it is a window. You can enumerate the DOM to find the html element then use something like PutinnerHTML(). Have a look at IEHelper here on CP. If you need more help just let me know.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
Thanks, Neville! What I really wanted to do was to paste text into the currently highlighted edit control of the active app. Temporarily copying text to the clipboard a firing a Ctrl/V at the active app seems to do it!
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Aha, I was wondering how SendKeys was the answer. Now I know. You should still be able to all of this working directly with the MSHTML control. As I said if you need any more help let me know.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
|
I think you need a DHTMLView to view your HTML and through the DHTMLView expose functions which could access the object of your HTML.
Sonork 100.41263:Anthony_Yio
|
|
|
|