15,745,199 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View C++ questions
View Python questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Jeremy Falcon (Top 10 by date)
Jeremy Falcon
27-Feb-17 12:29pm
View
You knocked it up? As if to say you got your code pregnant?
Jeremy Falcon
16-Aug-16 16:29pm
View
Then you'll find that there's no way of fixing this error without redesigning your application. Global_Variables.h is acting more like a main include file here, which is ok. Just look at it from a broad to narrow perspective and redesign your app... Main Parts of App > Global > Debugger, Window, Input.
Jeremy Falcon
27-Jul-16 15:43pm
View
Yes you could do that, with one notable difference, .innerHTML and .length are properties. As such you'd have to either write a wrapper method for it too, or a new prototype that calls the real one underneath the hood, but on the same object. Since code is worth a thousand words...
<script>
function id(element) {
return document.getElementById(element);
}
Object.prototype.in = function(markup) {
this.innerHTML = markup;
}
</script>
<p id="demo"></p>
<script>
// now the dom element exists
id('demo').in('i will show');
</script>
Jeremy Falcon
27-Jul-16 13:08pm
View
In this example, you're close but the "markup" parameter should be what you want to show rather than the ID. Also, for the id() function you'll need to return the value. And last but not least you need to make sure the DOM element (the paragraph in this example) exists before you can call it. Try something like this...
<script>
function id(element) {
return document.getElementById(element);
}
// this cannot be called yet because the p element does not exist
id("demo").innerHTML = "i will not show";
</script>
<p id="demo"></p>
<script>
// now the dom element exists
id("demo").innerHTML = "i will show";
</script>
Jeremy Falcon
26-Jan-16 15:45pm
View
You're welcome. It's just common sense man. Two accounts. Never used. Sounds like a sneaky app. I don't think you'll get much help from the pros here. Personally, I'll never contribute to the education of a virus writer. So in short, if you don't want to be thought of as a malware writer then don't act like one.
Jeremy Falcon
10-Aug-15 10:08am
View
This is a good example too, that uses a web technique...
http://www.codeproject.com/Articles/758/CHoverButton-A-simple-hoverbutton-with-one-bitmap
Jeremy Falcon
10-Aug-15 10:07am
View
Use this as a point of reference.
http://www.codeproject.com/Articles/530/A-Better-Bitmap-Button-Class
It's in MFC, but it should get you pointed in the right direction to port it to pure API.
Jeremy Falcon
7-Aug-15 9:51am
View
Look into the WM_MOUSEHOVER and WM_MOUSELEAVE messages. You can use a similar mechanism to set one bitmap on entry and revert it to the original upon exit. The only thing different to note is you'd now want to store your bitmaps in memory and keep them there for the life of the control rather than load them with every event.
Jeremy Falcon
5-Jan-15 10:49am
View
Reason for my vote of 1 \n This is not an article.
Jeremy Falcon
7-Nov-14 15:58pm
View
Reason for my vote of 1 \n Duh
Show More